1
0
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:
Darkvater
2006-12-30 23:20:00 +00:00
parent 6c8f12de78
commit f3424f51bc
8 changed files with 61 additions and 33 deletions

View File

@@ -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;
}