Skip to content

Commit 83a62eb

Browse files
committed
make force's implementation correspond to its docs
1 parent 38ca478 commit 83a62eb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

force.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ if not eventType then
3131
qerror('unknown event type: ' .. args[1])
3232
end
3333

34-
local newArgs = {'-eventType', eventType}
34+
local newArgs = {'--eventType', eventType}
3535
if eventType == 'Caravan' or eventType == 'Diplomat' then
36+
table.insert(newArgs, '--civ')
3637
if not args[2] then
37-
qerror('event type ' .. eventType .. ' requires civ ID')
38+
table.insert(newArgs, 'player')
3839
else
39-
table.insert(newArgs, '-civ')
4040
table.insert(newArgs, args[2])
4141
end
4242
end

0 commit comments

Comments
 (0)