summaryrefslogtreecommitdiff
path: root/world/map/npc/functions
diff options
context:
space:
mode:
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: