summaryrefslogtreecommitdiff
path: root/world/map/npc/functions
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-09-07 12:59:44 -0700
committerBen Longbons <b.r.longbons@gmail.com>2011-09-07 13:03:32 -0700
commit2c8c6b83af16beaa0bc4ec49f23faacfbe4a4a3d (patch)
treed6fe0bfbdf15d2466183f55e884ec29462b70134 /world/map/npc/functions
parentd7d75d5d4a8226943d0a1a6625bb946e61e23c83 (diff)
downloadserverdata-2c8c6b83af16beaa0bc4ec49f23faacfbe4a4a3d.tar.gz
serverdata-2c8c6b83af16beaa0bc4ec49f23faacfbe4a4a3d.tar.bz2
serverdata-2c8c6b83af16beaa0bc4ec49f23faacfbe4a4a3d.tar.xz
serverdata-2c8c6b83af16beaa0bc4ec49f23faacfbe4a4a3d.zip
Fix new argument warnings.
Requires the server patch to allow argumentless script functions
Diffstat (limited to 'world/map/npc/functions')
-rw-r--r--world/map/npc/functions/debug.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/world/map/npc/functions/debug.txt b/world/map/npc/functions/debug.txt
index 016bb98c..fe72eb72 100644
--- a/world/map/npc/functions/debug.txt
+++ b/world/map/npc/functions/debug.txt
@@ -21,10 +21,10 @@ L_Level:
input @lvl;
if (@lvl > 255) goto L_Leveltoohigh;
if (@lvl < 1) goto L_Leveltoolow;
- if (Baselevel - @lvl == 0) goto L_Samelvl;
- set BaseLevel, BaseLevel - (Baselevel - @lvl);
+ if (Baselevel == @lvl) goto L_Samelvl;
+ set BaseLevel, @lvl;
resetstatus;
- message "New level: " + Baselevel;
+ message strcharinfo(0), "New level: " + Baselevel;
goto L_Begin;
L_Samelvl: