Skip to content

Commit 6a60097

Browse files
committed
launch: use df.game_mode.ADVENTURE, spacing
1 parent 8e992fe commit 6a60097

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

launch.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ function launch(unitSource,unitTarget,unitRider)
1212
local curpos
1313
if df.global.ui_advmode.menu == df.ui_advmode_menu.Look then
1414
curpos = df.global.cursor
15-
elseif df.global.gamemode == 1 then
16-
qerror("No [l] cursor located!You would have slammed into the ground and exploded.")
15+
elseif df.global.gamemode == df.game_mode.ADVENTURE then
16+
qerror("No [l] cursor located! You would have slammed into the ground and exploded.")
1717
else
1818
qerror("Must be used in adventurer mode or the arena!")
1919
end

0 commit comments

Comments
 (0)