summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2016-02-10 10:02:29 -0600
committerwushin <pasekei@gmail.com>2016-02-10 10:02:29 -0600
commit935fa1946012a14638f42690840ed3d905a11f04 (patch)
tree63c236b92d66d45369c99f6387476e343962969a
parent831740025700f3862bd81dde1506a80f14346652 (diff)
downloadserverdata-935fa1946012a14638f42690840ed3d905a11f04.tar.gz
serverdata-935fa1946012a14638f42690840ed3d905a11f04.tar.bz2
serverdata-935fa1946012a14638f42690840ed3d905a11f04.tar.xz
serverdata-935fa1946012a14638f42690840ed3d905a11f04.zip
Don't crash on too smallv2016.2.9-3
-rw-r--r--world/map/npc/functions/time.txt5
1 files changed, 0 insertions, 5 deletions
diff --git a/world/map/npc/functions/time.txt b/world/map/npc/functions/time.txt
index e1daf974..7d16a200 100644
--- a/world/map/npc/functions/time.txt
+++ b/world/map/npc/functions/time.txt
@@ -75,7 +75,6 @@ function|script|HumanTime
if(@seconds) set @ms, @ms + (@seconds * 1000);
if(@minutes) set @ms, @ms + (@minutes * 60000);
if(@days) set @ms, @ms + (@days * 1440000);
- if(@ms < 0) goto L_TooShort;
if(@ms < 1000) goto L_Millis; // under 1 second we have nothing to count
set @seconds, @ms / 1000;
set @ms, @ms % 1000;
@@ -91,10 +90,6 @@ function|script|HumanTime
if(@days) goto L_Days;
goto L_Clean;
-L_TooShort:
- debugmes "HumanTime: negative value: "+@ms+" @ "+ strnpcinfo(0);
- mapexit;
-
L_Millis:
set @time$, @ms + "ms";
return;