summaryrefslogtreecommitdiff
path: root/src/3rdparty/squirrel
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-06-03 15:59:26 +0000
committeryexo <yexo@openttd.org>2009-06-03 15:59:26 +0000
commit13c69b897e5456a3423cf557535a848dee68a0f5 (patch)
tree1bc68edaba53d219ebff14ce7642996eebe43fcf /src/3rdparty/squirrel
parentd1a50f525835f7c9f40a80c60e58e535e6ad5f32 (diff)
downloadopenttd-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.cpp2
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)