mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-23 05:02:45 +01:00
(svn r7671) -Backport from trunk (r7560, r7561, r7566):
- No new company could join if 8 clients were connected in less than 8 companies (r7560). - [FS#431] internal and visible settings of autorenew could go out of sync (r8561). - Server told clients to start syncing from a bad position, causing asserts/crashes (r7566).
This commit is contained in:
@@ -1647,7 +1647,8 @@ static int32 ClickChangePlayerCheat(int32 p1, int32 p2)
|
||||
{
|
||||
while (IsValidPlayer((PlayerID)p1)) {
|
||||
if (_players[p1].is_active) {
|
||||
_local_player = (PlayerID)p1;
|
||||
SetLocalPlayer((PlayerID)p1);
|
||||
|
||||
MarkWholeScreenDirty();
|
||||
return _local_player;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user