aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-08 23:49:39 +0200
committerEugene Sandulenko2019-09-03 17:17:15 +0200
commite166f4e3ffb9da0fa3f49832555144c1b37d9281 (patch)
treeb09f77f2935a7c0f1aa29a1e1ecd2adda5713a62 /engines
parentcbbe538e5d7cbd7bba4f70d04be345ec493d994a (diff)
downloadscummvm-rg350-e166f4e3ffb9da0fa3f49832555144c1b37d9281.tar.gz
scummvm-rg350-e166f4e3ffb9da0fa3f49832555144c1b37d9281.tar.bz2
scummvm-rg350-e166f4e3ffb9da0fa3f49832555144c1b37d9281.zip
HDB: And even 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 fd7d147afd..347ff24238 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -47,6 +47,8 @@ struct ScriptPatch {
{"GLOBAL.LUA", "if type(v) == 'userdata' or type(v) == 'function' then return end", "if type(v) == 'userdata' or type(v) == 'function' or i == 'package' then return end" }, // Line 16
{"GLOBAL.LUA", "for npcname,npcdata in npcs do", "for npcname,npcdata in pairs(npcs) do"}, // Line 66
{"GLOBAL.LUA", "for dlgname,dlgdata in npcdata.dialog do", "for dlgname,dlgdata in pairs(npcdata.dialog) do"}, // Line 67
+ {"GLOBAL.LUA", "s = format( \"npcs.%s.dialog.%s.counter", "s = string.format( \"npcs.%s.dialog.%s.counter"}, // Line 68
+ {"GLOBAL.LUA", "s = format( \"npcs.%s.dialog.%s.finished = ", "s = string.format( \"npcs.%s.dialog.%s.finished = "}, // line 70
{"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"},