(svn r2951) - Fix: [ 1259345 ] Changing engine in netgame opens train window for everyone

- Add IsLocalPlayer() which substitutes _local_player == _current_player
This commit is contained in:
Darkvater
2005-09-14 18:03:38 +00:00
parent 1bf06d7da4
commit 2131f68ae2
12 changed files with 26 additions and 28 deletions

View File

@@ -1670,8 +1670,7 @@ static void TownActionBribe(Town *t, int action)
// only show errormessage to the executing player. All errors are handled command.c
// but this is special, because it can only 'fail' on a DC_EXEC
if (!_networking || (_current_player == _local_player))
ShowErrorMessage(STR_BRIBE_FAILED_2, STR_BRIBE_FAILED, 0, 0);
if (IsLocalPlayer()) ShowErrorMessage(STR_BRIBE_FAILED_2, STR_BRIBE_FAILED, 0, 0);
/* decrease by a lot!
* ChangeTownRating is only for stuff in demolishing. Bribe failure should