summaryrefslogtreecommitdiff
path: root/world/map/npc/functions/dailyquest.txt
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/functions/dailyquest.txt
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/functions/dailyquest.txt')
-rw-r--r--world/map/npc/functions/dailyquest.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/world/map/npc/functions/dailyquest.txt b/world/map/npc/functions/dailyquest.txt
index 9b9d626e..aadafc89 100644
--- a/world/map/npc/functions/dailyquest.txt
+++ b/world/map/npc/functions/dailyquest.txt
@@ -119,7 +119,7 @@ L_Exit:
S_SayPhrase:
if (@dq_handle_return)
- return;
+ goto L_Return;
if (DailyQuestPoints < @dq_cost)
goto L_Exhausted;
if (DailyQuestPoints > BaseLevel)
@@ -150,4 +150,7 @@ L_Low:
L_Exhausted:
mes "\"You look exhausted, maybe you should rest a bit.\"";
return;
+
+L_Return:
+ return;
}