- modified gameOver to be protected and defined two new operations to do the same thing (didWin and setLoser)
- removed ACTION_LOGGING_TESTING code - Fixed AIvsAI games multithreaded games - Activated undo when testsuite is enable - Defined an initial player comparison operator - Fixed multi-threaded modification to subtypes - Fixed gameTurn cleanup for gameObserver reuse
This commit is contained in:
@@ -365,9 +365,9 @@ void StoryDuel::Update(float dt)
|
||||
{
|
||||
if (!game) init();
|
||||
game->Update(dt);
|
||||
if (game->gameOver)
|
||||
if (game->didWin())
|
||||
{
|
||||
if (game->gameOver == game->players[1])
|
||||
if (game->didWin(game->players[0]))
|
||||
mParent->gotoPage(onWin);
|
||||
else
|
||||
mParent->gotoPage(onLose);
|
||||
|
||||
Reference in New Issue
Block a user