- Events are now sent to GameObserver rather than ActionLayer
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-06-13 03:49:52 +00:00
parent 9be451e134
commit dd56962910
8 changed files with 22 additions and 6 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ MTGCardInstance * MTGPlayerCards::putInZone(MTGCardInstance * card, MTGGameZone
copy->changedZoneRecently = 1.f;
GameObserver *g = GameObserver::GetInstance();
WEvent * e = NEW WEventZoneChange(copy, from, to);
g->mLayers->actionLayer()->receiveEvent(e);
g->receiveEvent(e);
delete e;
return copy;
}