Don't pause timer in thunderbird phase when in offline game

And don't show the dialog at all in network game when thunderbird phase
This commit is contained in:
Benau 2018-04-03 10:06:42 +08:00
parent 93d1b9136d
commit 969b56844b
2 changed files with 5 additions and 1 deletions

View File

@ -1294,7 +1294,9 @@ void World::unpause()
//-----------------------------------------------------------------------------
void World::escapePressed()
{
new RacePausedDialog(0.8f, 0.6f);
if (!(NetworkConfig::get()->isNetworking() &&
getPhase() < RACE_PHASE))
new RacePausedDialog(0.8f, 0.6f);
} // escapePressed
// ----------------------------------------------------------------------------

View File

@ -391,10 +391,12 @@ void WorldStatus::updateTime(int ticks)
break;
}
case FINISH_PHASE:
case IN_GAME_MENU_PHASE:
// Nothing to do here.
break;
case GOAL_PHASE:
// Nothing to do here as well.
break;
default: break;
}