summaryrefslogtreecommitdiff
path: root/world/map/npc/008-1/annualeaster.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/008-1/annualeaster.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/008-1/annualeaster.txt')
-rw-r--r--world/map/npc/008-1/annualeaster.txt13
1 files changed, 11 insertions, 2 deletions
diff --git a/world/map/npc/008-1/annualeaster.txt b/world/map/npc/008-1/annualeaster.txt
index 2e59275c..7032a0f3 100644
--- a/world/map/npc/008-1/annualeaster.txt
+++ b/world/map/npc/008-1/annualeaster.txt
@@ -168,10 +168,19 @@ OnTimer1000:
set $@isEaster, 1;
if (!$@wasEaster && $@isEaster)
- callsub S_enableEggs;
+ goto L_do_update_enable;
if ($@wasEaster && !$@isEaster)
- callsub S_disableEggs;
+ goto L_do_update_disable;
+L_do_update_enable:
+ callsub S_enableEggs;
+ goto L_done_update;
+
+L_do_update_disable:
+ callsub S_disableEggs;
+ goto L_done_update;
+
+L_done_update:
set $@wasEaster, $@isEaster;
if (!$@isEaster)