From c8f2dea0bd0068aac6f59a5053d4f0576f21bb23 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Mon, 16 Sep 2013 11:04:07 -0700 Subject: Refactor all broken returns into goto L_Return --- world/map/npc/functions/dailyquest.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'world/map/npc/functions/dailyquest.txt') 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; } -- cgit v1.2.3-60-g2f50