(svn r16834) -Fix [FS#3034]: call the AI Save() function only once so AIs can't crash OpenTTD

This commit is contained in:
yexo
2009-07-15 19:47:06 +00:00
parent 91a6af688e
commit f085d7775b
4 changed files with 32 additions and 24 deletions

View File

@@ -509,6 +509,11 @@ void Squirrel::ResetCrashed()
this->crashed = false;
}
void Squirrel::CrashOccurred()
{
this->crashed = true;
}
bool Squirrel::CanSuspend()
{
return sq_can_suspend(this->vm);