diff options
author | yexo <yexo@openttd.org> | 2009-06-03 15:59:26 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-06-03 15:59:26 +0000 |
commit | 13c69b897e5456a3423cf557535a848dee68a0f5 (patch) | |
tree | 1bc68edaba53d219ebff14ce7642996eebe43fcf /src/3rdparty/squirrel | |
parent | d1a50f525835f7c9f40a80c60e58e535e6ad5f32 (diff) | |
download | openttd-13c69b897e5456a3423cf557535a848dee68a0f5.tar.xz |
(svn r16509) -Fix (r16502): All Sleep/DoCommand calls failed instead of only those via a call/acall/pcall function
Diffstat (limited to 'src/3rdparty/squirrel')
-rw-r--r-- | src/3rdparty/squirrel/squirrel/sqapi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/squirrel/squirrel/sqapi.cpp b/src/3rdparty/squirrel/squirrel/sqapi.cpp index 82527f4a7..647d1b4ee 100644 --- a/src/3rdparty/squirrel/squirrel/sqapi.cpp +++ b/src/3rdparty/squirrel/squirrel/sqapi.cpp @@ -92,7 +92,7 @@ SQInteger sq_getvmstate(HSQUIRRELVM v) bool sq_can_suspend(HSQUIRRELVM v) { - return v->_can_suspend; + return v->_nnativecalls <= 2; } void sq_seterrorhandler(HSQUIRRELVM v) |