1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-22 03:42:41 +01:00

(svn r17236) [0.7] -Backport from trunk:

- Fix: [NoAI] AIs that crashed during Save() were not killed as they should [FS#3134] (r17231)
- Fix: [NoAI] Do not assert when an AI uses AI*Mode objects incorrectly but crash the AI instead (r17230)
- Change: [NoAI] Crash an AI when it uses a DoCommand / Sleep instead of just printing an error message in the AI Debug Window [FS#2980] (r17223)
This commit is contained in:
rubidium
2009-08-20 13:25:21 +00:00
parent 91078be657
commit a0bc64394c
13 changed files with 107 additions and 14 deletions

View File

@@ -187,6 +187,12 @@ bool Squirrel::Resume(int suspend)
return this->vm->_suspended != 0;
}
void Squirrel::ResumeError()
{
assert(!this->crashed);
sq_resumeerror(this->vm);
}
void Squirrel::CollectGarbage()
{
sq_collectgarbage(this->vm);