Removed targets[20] from the ExtraCost class. It wasn't being used in any meaningful way, and was bloating the class size for nothing. Reduces ExtraCost from 128 to 48 bytes per instance.

This commit is contained in:
wrenczes@gmail.com
2011-04-20 09:28:28 +00:00
parent ec95bb93e1
commit 6fb5766a5e

View File

@@ -14,13 +14,12 @@ public:
TargetChooser * tc;
MTGCardInstance * source;
MTGCardInstance * target;
MTGCardInstance * targets[20];
std::string mCostRenderString;
ExtraCost(const std::string& inCostRenderString, TargetChooser *_tc = NULL);
virtual ~ExtraCost();
virtual int setPayment(MTGCardInstance * card);
virtual int isPaymentSet() { return (target != NULL && targets != NULL); }
virtual int isPaymentSet() { return (target != NULL); }
virtual int canPay() { return 1; }
virtual int doPay() = 0;
virtual void Render();