Removed modifications that should not have been part of my previous commit and were causing compilation problems.

This commit is contained in:
Xawotihs@gmail.com
2012-02-12 08:44:22 +00:00
parent a9ef271e74
commit ebc4eb331f

View File

@@ -965,17 +965,9 @@ void ActionStack::Update(float dt)
}
}
void ActionStack::cancelInterruptOffer(InterruptDecision cancelMode, bool log, Player* cancelMe)
void ActionStack::cancelInterruptOffer(InterruptDecision cancelMode, bool log)
{
int playerId;
if(cancelMe != NULL) {
if(observer->players[1] == cancelMe)
playerId = 1;
else
playerId = 0;
} else {
playerId = (observer->isInterrupting == observer->players[1]) ? 1 : 0;
}
int playerId = (observer->isInterrupting == observer->players[1]) ? 1 : 0;
interruptDecision[playerId] = cancelMode;
askIfWishesToInterrupt = NULL;
observer->isInterrupting = NULL;