summaryrefslogtreecommitdiff
path: root/src/script/squirrel.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-07-15 19:47:06 +0000
committeryexo <yexo@openttd.org>2009-07-15 19:47:06 +0000
commitf085d7775b12e77b8012ab09ae72b850367a3237 (patch)
treedcc6b0bf106aff0538a996a369c0d213834e462f /src/script/squirrel.hpp
parent91a6af688e0f99017dd824de6b0f1f18dbc6ef50 (diff)
downloadopenttd-f085d7775b12e77b8012ab09ae72b850367a3237.tar.xz
(svn r16834) -Fix [FS#3034]: call the AI Save() function only once so AIs can't crash OpenTTD
Diffstat (limited to 'src/script/squirrel.hpp')
-rw-r--r--src/script/squirrel.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/script/squirrel.hpp b/src/script/squirrel.hpp
index b878c2b95..32f24cb11 100644
--- a/src/script/squirrel.hpp
+++ b/src/script/squirrel.hpp
@@ -215,6 +215,11 @@ public:
void ResetCrashed();
/**
+ * Set the AI status to crashed.
+ */
+ void CrashOccurred();
+
+ /**
* Are we allowed to suspend the squirrel script at this moment?
*/
bool CanSuspend();