summaryrefslogtreecommitdiff
path: root/world/map/npc/008-1
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-09-16 11:04:07 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-09-16 11:28:50 -0700
commitc8f2dea0bd0068aac6f59a5053d4f0576f21bb23 (patch)
tree6fd01d79a602924b9c56e9e7b8ef014bcdbce6a1 /world/map/npc/008-1
parent1f30542a2d0a10e1834bac8d83fb210afc3d618f (diff)
downloadserverdata-c8f2dea0bd0068aac6f59a5053d4f0576f21bb23.tar.gz
serverdata-c8f2dea0bd0068aac6f59a5053d4f0576f21bb23.tar.bz2
serverdata-c8f2dea0bd0068aac6f59a5053d4f0576f21bb23.tar.xz
serverdata-c8f2dea0bd0068aac6f59a5053d4f0576f21bb23.zip
Refactor all broken returns into goto L_Return
Diffstat (limited to 'world/map/npc/008-1')
-rw-r--r--world/map/npc/008-1/annualeaster.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/world/map/npc/008-1/annualeaster.txt b/world/map/npc/008-1/annualeaster.txt
index 66c1c746..e4ed6b1b 100644
--- a/world/map/npc/008-1/annualeaster.txt
+++ b/world/map/npc/008-1/annualeaster.txt
@@ -219,12 +219,13 @@ S_disableEggs:
S_relocateEasterEgg:
if ($@peopleFoundEggs[$@EggID] < $@AEASTER_mapcount)
- return;
+ goto L_Return;
set $@peopleFoundEggs[$@EggID], 0;
set $@eastereggPos, rand(getarraysize($@easteregg_posx));
npcwarp $@easteregg_posx[$@eastereggPos], $@easteregg_posy[$@eastereggPos], "#TestEgg" + $@EggID;
- return;
+L_Return:
+ return;
}