diff options
author | Darkvater <darkvater@openttd.org> | 2005-09-14 18:03:38 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-09-14 18:03:38 +0000 |
commit | 2131f68ae2c65799f2ce82ee84c7022264efa469 (patch) | |
tree | 1c4620d5f83933db927ef94bd8a085442eaca0c1 /town_cmd.c | |
parent | 1bf06d7da4043d007d8a174b2187153bc818bf83 (diff) | |
download | openttd-2131f68ae2c65799f2ce82ee84c7022264efa469.tar.xz |
(svn r2951) - Fix: [ 1259345 ] Changing engine in netgame opens train window for everyone
- Add IsLocalPlayer() which substitutes _local_player == _current_player
Diffstat (limited to 'town_cmd.c')
-rw-r--r-- | town_cmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/town_cmd.c b/town_cmd.c index c493fd2b6..2ba9e5fa0 100644 --- a/town_cmd.c +++ b/town_cmd.c @@ -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 |