mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-05 22:04:39 +00:00
(svn r13825) -Revert (r13821 partially): preview_player_rank wasn't a PlayerByte value in r12143, and still isn't a PlayerByte value.
This commit is contained in:
parent
64833bb84f
commit
7cdd6ef33c
@ -342,11 +342,11 @@ void EnginesDailyLoop()
|
|||||||
DeleteWindowById(WC_ENGINE_PREVIEW, i);
|
DeleteWindowById(WC_ENGINE_PREVIEW, i);
|
||||||
e->preview_player_rank++;
|
e->preview_player_rank++;
|
||||||
}
|
}
|
||||||
} else if (e->preview_player_rank != PLAYER_SPECTATOR) {
|
} else if (e->preview_player_rank != 0xFF) {
|
||||||
PlayerID best_player = GetBestPlayer(e->preview_player_rank);
|
PlayerID best_player = GetBestPlayer(e->preview_player_rank);
|
||||||
|
|
||||||
if (best_player == PLAYER_SPECTATOR) {
|
if (best_player == PLAYER_SPECTATOR) {
|
||||||
e->preview_player_rank = PLAYER_SPECTATOR;
|
e->preview_player_rank = 0xFF;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ struct Engine : PoolItem<Engine, EngineID, &_Engine_pool> {
|
|||||||
uint16 duration_phase_1, duration_phase_2, duration_phase_3;
|
uint16 duration_phase_1, duration_phase_2, duration_phase_3;
|
||||||
byte lifelength;
|
byte lifelength;
|
||||||
byte flags;
|
byte flags;
|
||||||
PlayerByte preview_player_rank;
|
uint8 preview_player_rank;
|
||||||
byte preview_wait;
|
byte preview_wait;
|
||||||
PlayerMask player_avail;
|
PlayerMask player_avail;
|
||||||
uint8 image_index; ///< Original vehicle image index
|
uint8 image_index; ///< Original vehicle image index
|
||||||
|
Loading…
Reference in New Issue
Block a user