changeset 12098:cd5dd7b1dbc5 draft

(svn r16509) -Fix (r16502): All Sleep/DoCommand calls failed instead of only those via a call/acall/pcall function
author yexo <yexo@openttd.org>
date Wed, 03 Jun 2009 15:59:26 +0000
parents 6df400d87245
children 8d1dc9765fc6
files src/3rdparty/squirrel/squirrel/sqapi.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/3rdparty/squirrel/squirrel/sqapi.cpp
+++ b/src/3rdparty/squirrel/squirrel/sqapi.cpp
@@ -92,7 +92,7 @@
 
 bool sq_can_suspend(HSQUIRRELVM v)
 {
-	return v->_can_suspend;
+	return v->_nnativecalls <= 2;
 }
 
 void sq_seterrorhandler(HSQUIRRELVM v)