@@ -259,31 +259,31 @@ void EnginesDailyLoop(void)
e->flags &= ~ENGINE_PREVIEWING;
DeleteWindowById(WC_ENGINE_PREVIEW, i);
e->preview_player++;
}
} else if (e->preview_player != 0xFF) {
PlayerID best_player = GetBestPlayer(e->preview_player);
if (best_player == OWNER_SPECTATOR) {
e->preview_player = 0xFF;
continue;
if (!IS_HUMAN_PLAYER(best_player)) {
if (!IsHumanPlayer(best_player)) {
/* XXX - TTDBUG: TTD has a bug here ???? */
AcceptEnginePreview(e, best_player);
} else {
e->flags |= ENGINE_PREVIEWING;
e->preview_wait = 20;
if (IS_INTERACTIVE_PLAYER(best_player)) ShowEnginePreviewWindow(i);
if (IsInteractivePlayer(best_player)) ShowEnginePreviewWindow(i);
/** Accept an engine prototype. XXX - it is possible that the top-player
* changes while you are waiting to accept the offer? Then it becomes invalid
* @param tile unused
* @param p1 engine-prototype offered
* @param p2 unused
*/