mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r9529) -Fix [FS#705]: when 2 clients joined together, the second asserted on the NewCompany command of the first
This commit is contained in:
parent
fab0c38ddf
commit
9d7497c837
@ -821,8 +821,8 @@ int32 CmdPlayerCtrl(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* This is the joining client who wants a new company */
|
/* This is the joining client who wants a new company */
|
||||||
if (_local_player != _network_playas) {
|
if (_local_player != _network_playas && _network_playas == p->index) {
|
||||||
assert(_local_player == PLAYER_SPECTATOR && _network_playas == p->index);
|
assert(_local_player == PLAYER_SPECTATOR);
|
||||||
SetLocalPlayer(p->index);
|
SetLocalPlayer(p->index);
|
||||||
MarkWholeScreenDirty();
|
MarkWholeScreenDirty();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user