# HG changeset patch # User truelight # Date 1095010589 0 # Node ID a829221214b5da8407e4972365c2fa86a24dd040 # Parent f1ebbfefc3f8ac88fc8e879bd814a298be04a9aa (svn r216) -Fix: paused network game now disallows all commands (instead of doing the commands all at once when the game unpauses) diff -r f1ebbfefc3f8 -r a829221214b5 command.c --- a/command.c Sun Sep 12 16:03:40 2004 +0000 +++ b/command.c Sun Sep 12 17:36:29 2004 +0000 @@ -385,6 +385,15 @@ assert(_docommand_recursive == 0); + if (_networking && !(cmd & CMD_NET_INSTANT) && _pause) { + // When the game is paused, and we are in a network game + // we do not allow any commands. This is because + // of some technical reasons + ShowErrorMessage(-1, STR_MULTIPLAYER_PAUSED, x, y); + _docommand_recursive = 0; + return true; + } + _error_message = INVALID_STRING_ID; _error_message_2 = cmd >> 16; _additional_cash_required = 0; diff -r f1ebbfefc3f8 -r a829221214b5 lang/english.txt --- a/lang/english.txt Sun Sep 12 16:03:40 2004 +0000 +++ b/lang/english.txt Sun Sep 12 17:36:29 2004 +0000 @@ -2556,6 +2556,7 @@ STR_BRIBE_FAILED :{WHITE}Your attempted bribery has been STR_BRIBE_FAILED_2 :{WHITE}discovered by a regional investigator STR_BUILD_DATE :{BLACK}Built: {LTBLUE}{DATE_LONG} +STR_MULTIPLAYER_PAUSED :{WHITE}Game is paused.{}Command cannot be executed STR_PERFORMANCE_DETAIL :{WHITE}Detail performance rating STR_PERFORMANCE_DETAIL_KEY :{BLACK}Detail