Erwan
-code cleanup -memory leaks fixes
This commit is contained in:
@@ -61,9 +61,7 @@ void DuelLayers::Update(float dt, Player * currentPlayer)
|
||||
{
|
||||
for (int i = 0; i < nbitems; ++i) objects[i]->Update(dt);
|
||||
int isAI = currentPlayer->isAI();
|
||||
GameObserver * game = GameObserver::GetInstance();
|
||||
if (isAI) currentPlayer->Act(dt);
|
||||
|
||||
CheckUserInput(isAI);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user