Skip to content

Commit

Permalink
misc | restore sp commands
Browse files Browse the repository at this point in the history
  • Loading branch information
SalatielSauer committed Jan 12, 2025
1 parent 8d4db30 commit 7562df2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/game.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ loop i (listlen $modenames) [
mapcomplete $mname
]

spmodenames = "sp dmsp"
loop i (listlen $spmodenames) [
local mname
mname = (at $spmodenames $i)
alias $mname [ if (mode (- @i 3)) [if (> $numargs 0) [map $arg1] [map]] ]
mapcomplete $mname
]

demo = [stopdemo; if (mode -1) [map $arg1]]
varcomplete demo demodir dmo

Expand Down

0 comments on commit 7562df2

Please sign in to comment.