diff options
author | Eugene Sandulenko | 2019-07-03 14:53:10 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:09 +0200 |
commit | 734995512e354af0dac3ee5681372f283c7d375e (patch) | |
tree | 922564dfc4908da89e5e207afc852c9e5f7ce395 /engines | |
parent | ce06f4eb9e0a516b370ea602318fd2eb49be9b43 (diff) | |
download | scummvm-rg350-734995512e354af0dac3ee5681372f283c7d375e.tar.gz scummvm-rg350-734995512e354af0dac3ee5681372f283c7d375e.tar.bz2 scummvm-rg350-734995512e354af0dac3ee5681372f283c7d375e.zip |
HDB: Added more script patches
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/lua-script.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp index 6b18b21cd7..a42ca79857 100644 --- a/engines/hdb/lua-script.cpp +++ b/engines/hdb/lua-script.cpp @@ -40,10 +40,12 @@ struct ScriptPatch { {"GLOBAL_LUA", "if( dtable.counter < getn(dtable) ) then", "if( dtable.counter < #dtable ) then"}, {"GLOBAL_LUA", "if( getglobal( \"map\"..tostring(v1)..\"_complete\" ) ) then", "if( _G[\"map\"..tostring(v1)..\"_complete\"] ) then"}, {"GLOBAL_LUA", "closefunc = getglobal( npcdef.codename..\"_use\" )", "closefunc = _G[npcdef.codename..\"_use\"]"}, + {"GLOBAL_LUA", "strsub(", "string.sub("}, // line 15 {"MAP00_LUA", "tempfunc = function() emptybed_use( %x, %y, %v1, %v2 ) end", "tempfunc = function() emptybed_use(x, y, v1, v2) end"}, {"MAP00_LUA", "if( getn( beds ) == 0 ) then", "if( #beds == 0 ) then"}, {"MAP01_LUA", "if( covert_index < getn(covert_dialog) ) then", "if( covert_index < #covert_dialog ) then"}, {"MAP01_LUA", "if( chiste_index < getn( chiste_dialog ) )then", "if( covert_index < #covert_dialog ) then"}, + {"MAP01_LUA", "strsub(", "string.sub("}, // line 23 {NULL, NULL, NULL}, }; |