From 34037c40d28c9fe179d930949320090448b249e9 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 15 Nov 2015 00:54:33 +0100 Subject: Fixed too-generic constant names of gettime() types - Follow-up to 3bd77ffc0daca508352834add828766490075aee - The names were too generic (not namespaced), and were easily clashing with custom (and potential future official) constants or variables. - Constants are now prefixed with a 'GETTIME_' namespace: - GETTIME_SECOND - GETTIME_MINUTE - GETTIME_HOUR - GETTIME_WEEKDAY - GETTIME_DAYOFMONTH - GETTIME_MONTH - GETTIME_YEAR - GETTIME_DAYOFYEAR - Fixed some excessive (and some times incorrect) parentheses in various scripts using gettime(). - Updated documentation. Signed-off-by: Haru --- npc/quests/newgears/2010_headgears.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc/quests/newgears') diff --git a/npc/quests/newgears/2010_headgears.txt b/npc/quests/newgears/2010_headgears.txt index 3dfa0b754..34d1e8b2b 100644 --- a/npc/quests/newgears/2010_headgears.txt +++ b/npc/quests/newgears/2010_headgears.txt @@ -1036,7 +1036,7 @@ alberta,120,206,3 script Alonie#Solo_Play_Box 4_M_UMKID,{ mes "My affection-lacked student!"; mes "This is the end of your training!"; next; - if (gettime(HOUR) < 12) { + if (gettime(GETTIME_HOUR) < 12) { if (checkweight(Solo_Play_Box1,1) == 0) { mes "[Alonie]"; mes "Playing outside with this heavy bag?"; -- cgit v1.2.3-60-g2f50