mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-16 17:15:05 +01:00
(svn r16509) -Fix (r16502): All Sleep/DoCommand calls failed instead of only those via a call/acall/pcall function
This commit is contained in:
parent
d1a50f5258
commit
13c69b897e
2
src/3rdparty/squirrel/squirrel/sqapi.cpp
vendored
2
src/3rdparty/squirrel/squirrel/sqapi.cpp
vendored
@ -92,7 +92,7 @@ SQInteger sq_getvmstate(HSQUIRRELVM v)
|
|||||||
|
|
||||||
bool sq_can_suspend(HSQUIRRELVM v)
|
bool sq_can_suspend(HSQUIRRELVM v)
|
||||||
{
|
{
|
||||||
return v->_can_suspend;
|
return v->_nnativecalls <= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
void sq_seterrorhandler(HSQUIRRELVM v)
|
void sq_seterrorhandler(HSQUIRRELVM v)
|
||||||
|
Loading…
Reference in New Issue
Block a user