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/game_rules.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'world/map/npc/functions/game_rules.txt') diff --git a/world/map/npc/functions/game_rules.txt b/world/map/npc/functions/game_rules.txt index caf13cb1..1d9bd91d 100644 --- a/world/map/npc/functions/game_rules.txt +++ b/world/map/npc/functions/game_rules.txt @@ -14,7 +14,8 @@ function|script|GameRules|, "Portugues (Portuguese)", L_Portuguese, "Polski (Polish)", L_Polish, "Italiano (Italian)", L_Italian; - if (@canSkip) return; + // is this even reachable? TODO look at how the 'cancel' button works. + if (@canSkip) goto L_Return; L_English: mes "Players breaking the following rules may be banned (up to and including a permanent ban) or have their characters reset at the GM's discretion:"; @@ -159,5 +160,7 @@ L_End: set @read, 1; if (TUT_var == 0) set TUT_var, gettimetick(2); + +L_Return: return; } -- cgit v1.2.3-60-g2f50