* Fix the acting player.
* This should make most things work.
* I still witness some segfaults.
This commit is contained in:
jean.chalard
2009-09-03 17:23:03 +00:00
parent a0cc143261
commit dd2a541c2b
+3 -1
View File
@@ -250,7 +250,9 @@ GameObserver::~GameObserver(){
} }
void GameObserver::Update(float dt){ void GameObserver::Update(float dt){
Player * player = currentPlayer; Player * player = currentPlayer;
if (Constants::MTG_PHASE_COMBATBLOCKERS == currentGamePhase && BLOCKERS == combatStep)
player = player->opponent();
currentActionPlayer = player; currentActionPlayer = player;
if (isInterrupting) player = isInterrupting; if (isInterrupting) player = isInterrupting;
mLayers->Update(dt,player); mLayers->Update(dt,player);