summaryrefslogtreecommitdiff
path: root/world/map/npc/009-1/jack.txt
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-06-28 11:41:36 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-06-28 12:29:02 -0700
commitbc66a98377575c7c8e9592e50cbdcf083d6ecaff (patch)
treed1ecc1c6a99191cce3108199d96fcbe891772f65 /world/map/npc/009-1/jack.txt
parent9018aee73b120bd9c5c414abcb5af6da4c7b1bea (diff)
downloadserverdata-bc66a98377575c7c8e9592e50cbdcf083d6ecaff.tar.gz
serverdata-bc66a98377575c7c8e9592e50cbdcf083d6ecaff.tar.bz2
serverdata-bc66a98377575c7c8e9592e50cbdcf083d6ecaff.tar.xz
serverdata-bc66a98377575c7c8e9592e50cbdcf083d6ecaff.zip
Refactor all calls within an if, which is illegal
Diffstat (limited to 'world/map/npc/009-1/jack.txt')
-rw-r--r--world/map/npc/009-1/jack.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/world/map/npc/009-1/jack.txt b/world/map/npc/009-1/jack.txt
index 65968d5e..f92813db 100644
--- a/world/map/npc/009-1/jack.txt
+++ b/world/map/npc/009-1/jack.txt
@@ -39,8 +39,11 @@
mes "[Jack Lumber]";
mes "\"Hello there, my name is Jack Lumber, the enemy of all trees. If you need some firewood just let me know.\"";
- if (@inspector == 1)
- callsub S_NohMask_Ask;
+ if (@inspector != 1)
+ goto L_NotInspector;
+ callsub S_NohMask_Ask;
+
+L_NotInspector:
next;
if (@Q_Forestbow < 1)
goto L_Close;
@@ -96,8 +99,9 @@ L_Bow_state_2:
if (@Q_Forestbow > 3) goto L_Bow_state_4;
mes "\"Good luck hunting those tree monsters - you will need it.\"";
- if (@inspector == 1)
- callsub S_NohMask_Ask;
+ if (@inspector != 1)
+ goto L_Close;
+ callsub S_NohMask_Ask;
goto L_Close;
L_Bow_state_4: