summaryrefslogtreecommitdiff
path: root/ai
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-11-26 16:18:15 +0000
committertruelight <truelight@openttd.org>2005-11-26 16:18:15 +0000
commit9a381f4d5d7a575571943b94c94c27b3ae6cad2d (patch)
tree36d2f634c14fe9000cedfca44f2d0a5ea1b5f5d3 /ai
parent10ce514f59b414c13e63bdc2e2acaf1db259354e (diff)
downloadopenttd-9a381f4d5d7a575571943b94c94c27b3ae6cad2d.tar.xz
(svn r3238) -Fix: always save if you want GPMI-based AIs, this on request by
Darkvater, so we can, in the future, save patch options in savegames without any problems.
Diffstat (limited to 'ai')
-rw-r--r--ai/ai.c4
-rw-r--r--ai/ai.h2
2 files changed, 0 insertions, 6 deletions
diff --git a/ai/ai.c b/ai/ai.c
index e3fe2d307..50a4a39ca 100644
--- a/ai/ai.c
+++ b/ai/ai.c
@@ -244,9 +244,7 @@ void AI_PlayerDied(PlayerID player)
void AI_Initialize(void)
{
bool tmp_ai_network_client = _ai.network_client;
-#ifdef GPMI
bool tmp_ai_gpmi = _ai.gpmi;
-#endif /* GPMI */
memset(&_ai, 0, sizeof(_ai));
memset(&_ai_player, 0, sizeof(_ai_player));
@@ -254,9 +252,7 @@ void AI_Initialize(void)
_ai.network_client = tmp_ai_network_client;
_ai.network_playas = OWNER_SPECTATOR;
_ai.enabled = true;
-#ifdef GPMI
_ai.gpmi = tmp_ai_gpmi;
-#endif /* GPMI */
}
/**
diff --git a/ai/ai.h b/ai/ai.h
index 97747aa7b..cb18882ca 100644
--- a/ai/ai.h
+++ b/ai/ai.h
@@ -39,9 +39,7 @@ typedef struct AIStruct {
bool network_client; //! Are we a network_client?
uint8 network_playas; //! The current network player we are connected as
-#ifdef GPMI
bool gpmi; //! True if we want GPMI AIs
-#endif /* GPMI */
} AIStruct;
VARDEF AIStruct _ai;