aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-03 14:53:10 +0200
committerEugene Sandulenko2019-09-03 17:17:09 +0200
commit734995512e354af0dac3ee5681372f283c7d375e (patch)
tree922564dfc4908da89e5e207afc852c9e5f7ce395 /engines
parentce06f4eb9e0a516b370ea602318fd2eb49be9b43 (diff)
downloadscummvm-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.cpp2
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},
};