(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:
@@ -3831,7 +3831,7 @@ static void AiHandleTakeover(Player *p)
|
||||
return;
|
||||
p->bankrupt_timeout = 0;
|
||||
DeleteWindowById(WC_BUY_COMPANY, _current_player);
|
||||
if (_current_player == _local_player) {
|
||||
if (IsLocalPlayer()) {
|
||||
AskExitToGameMenu();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user