- graphical representation of counters. see graphics/counters/quest.jpg for an example
- rewrote some code dealing with text formatting for a card when rendering in text mode. I could swear my code has been reverted. If somebody has good reason to believe we should re-process the string formatting on every frame, please let me now. I believe my change can help rendering speed of text mode a lot. - counters change to vector instead of array
This commit is contained in:
@@ -2601,10 +2601,9 @@ int ATransformer::addToGame()
|
||||
|
||||
int ATransformer::reapplyCountersBonus(MTGCardInstance * rtarget,bool powerapplied,bool toughnessapplied)
|
||||
{
|
||||
if(!rtarget->counters)
|
||||
if(!rtarget->counters || !rtarget->counters->counters.size())
|
||||
return 0;
|
||||
Counter * c = NULL;
|
||||
c = rtarget->counters->counters[0];
|
||||
Counter * c = rtarget->counters->counters[0];
|
||||
int rNewPower = 0;
|
||||
int rNewToughness = 0;
|
||||
for (int t = 0; t < rtarget->counters->mCount; t++)
|
||||
|
||||
Reference in New Issue
Block a user