From 835188124a6e590b406d81803b8d47f07884a9ea Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 26 Aug 2013 19:14:26 +0200 Subject: Added an integer overflow check on literal values in the script parser - When attempting to use a value greater than INT_MAX or smaller than INT_MIN (about +/- 2 billions), an error message will be shown and script execution will be aborted. - Corrected some scripts that were attempting to use such values. - Fixed some possible issues when using literal negative values in scripts. Thanks to Ind for his help on this issue (figuring it out and fixing it) Signed-off-by: Haru --- npc/quests/quests_lighthalzen.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'npc/quests/quests_lighthalzen.txt') diff --git a/npc/quests/quests_lighthalzen.txt b/npc/quests/quests_lighthalzen.txt index d67e79c78..1085774e0 100644 --- a/npc/quests/quests_lighthalzen.txt +++ b/npc/quests/quests_lighthalzen.txt @@ -4472,10 +4472,10 @@ lighthalzen,346,263,3 script Elder#lhz 846,{ mes "you must search should"; mes "be clear to you now! Don't"; mes "forget these placemarks!"; - viewpoint 1,104,282,1,0xFF99FF33; - viewpoint 1,105,282,2,0xFF99FF33; - viewpoint 1,104,281,3,0xFF99FF33; - viewpoint 1,105,281,4,0xFF99FF33; + viewpoint 1,104,282,1,0x99FF33; + viewpoint 1,105,282,2,0x99FF33; + viewpoint 1,104,281,3,0x99FF33; + viewpoint 1,105,281,4,0x99FF33; next; mes "[Elder]"; mes "Good luck, youngster."; -- cgit v1.2.3-70-g09d2