Skip to content

Commit

Permalink
parser: Update for new :Say args
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Dec 11, 2023
1 parent 3754551 commit 5bbd912
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gen_option_values.lua
Original file line number Diff line number Diff line change
Expand Up @@ -993,9 +993,9 @@ local function parseLua(file)
if method == "PlaySound" and args[3+offset] and args[3+offset] ~= "nil" and not args[3+offset]:match("^\"(.-)\"$") and not args[3+offset]:match(" and \"(.-)\"$") then
error(string.format(" %s:%d: PlaySound: Invalid voice(3)! func=%s, key=%s, voice=%s", file_name, n, tostring(current_func), key, tostring(args[3+offset])))
end
--if method == "Say" and args[2+offset] == "nil" then
-- error(string.format(" %s:%d: Say: Missing msg(2)! func=%s, key=%s", file_name, n, tostring(current_func), key))
--end
if method == "Say" and (args[2+offset] == "nil" and args[3+offset] == "true") then
error(string.format(" %s:%d: Say: Missing msg(2) with directPrint(3)! func=%s, key=%s", file_name, n, tostring(current_func), key))
end
-- Set default keys
if method == "CloseAltPower" and not key then
key = "\"altpower\""
Expand Down

0 comments on commit 5bbd912

Please sign in to comment.