summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-23 03:24:32 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-23 03:24:32 +0000
commitd28762e63974a9dbe1e642829df185cdd40abde5 (patch)
tree93e3775658baccb87a804d89068c2c27315d1231 /src/map/script.c
parentec0953fdd84a6b85189e9698118ea8aa62d8bdc1 (diff)
downloadhercules-d28762e63974a9dbe1e642829df185cdd40abde5.tar.gz
hercules-d28762e63974a9dbe1e642829df185cdd40abde5.tar.bz2
hercules-d28762e63974a9dbe1e642829df185cdd40abde5.tar.xz
hercules-d28762e63974a9dbe1e642829df185cdd40abde5.zip
- Moved "#include <limits.h>" to cbasetypes.h to ensure it's included before checking if UINT_MAX has been defined.
- Minor changes in pc_readdb related to max_level being unsigned. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9561 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 919c22917..48ac823d8 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -10,7 +10,6 @@
#include <string.h>
#include <ctype.h>
#include <math.h>
-#include <limits.h>
#ifndef _WIN32
#include <sys/time.h>
@@ -2991,7 +2990,7 @@ static int script_load_mapreg(void)
ShowInfo("Freeing results...\n");
mysql_free_result(sql_res);
mapreg_dirty=0;
- perfomance = (time(NULL) - perfomance);
+ perfomance = (((unsigned int)time(NULL)) - perfomance);
ShowInfo("SQL Mapreg Loading Completed Under %d Seconds.\n",perfomance);
return 0;
#endif /* TXT_ONLY */