diff --git a/engine.c b/engine.c --- a/engine.c +++ b/engine.c @@ -227,7 +227,7 @@ static PlayerID GetBestPlayer(PlayerID p do { best_hist = -1; - best_player = OWNER_SPECTATOR; + best_player = PLAYER_SPECTATOR; FOR_ALL_PLAYERS(p) { if (p->is_active && p->block_preview == 0 && !HASBIT(mask, p->index) && p->old_economy[0].performance_history > best_hist) { @@ -236,7 +236,7 @@ static PlayerID GetBestPlayer(PlayerID p } } - if (best_player == OWNER_SPECTATOR) return OWNER_SPECTATOR; + if (best_player == PLAYER_SPECTATOR) return PLAYER_SPECTATOR; SETBIT(mask, best_player); } while (--pp != 0); @@ -263,7 +263,7 @@ void EnginesDailyLoop(void) } else if (e->preview_player != 0xFF) { PlayerID best_player = GetBestPlayer(e->preview_player); - if (best_player == OWNER_SPECTATOR) { + if (best_player == PLAYER_SPECTATOR) { e->preview_player = 0xFF; continue; }