summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/utils.h6
-rw-r--r--src/map/map.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/src/common/utils.h b/src/common/utils.h
index 0ac818468..e2b0dacc9 100644
--- a/src/common/utils.h
+++ b/src/common/utils.h
@@ -51,6 +51,12 @@ size_t hread(void * ptr, size_t size, size_t count, FILE * stream);
size_t hwrite(const void * ptr, size_t size, size_t count, FILE * stream);
#endif // HERCULES_CORE
+#ifdef WIN32
+#define HSleep(x) Sleep(1000 * (x))
+#else // ! WIN32
+#define HSleep(x) sleep(x)
+#endif
+
/* [Ind/Hercules] Caching */
struct HCache_interface {
void (*init) (void);
diff --git a/src/map/map.c b/src/map/map.c
index abbc5c954..4da555cd5 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -3752,7 +3752,7 @@ int inter_config_read(char *cfgName) {
"Please upgrade to the non-sql version as soon as possible. "
"Bug reports or pull requests concerning the SQL item database are no longer accepted.\n");
ShowInfo("Resuming in 10 seconds...\n");
- sleep(10);
+ HSleep(10);
}
}
else if(strcmpi(w1,"use_sql_mob_db")==0) {
@@ -3764,7 +3764,7 @@ int inter_config_read(char *cfgName) {
"Please upgrade to the non-sql version as soon as possible. "
"Bug reports or pull requests concerning the SQL monster database are no longer accepted.\n");
ShowInfo("Resuming in 10 seconds...\n");
- sleep(10);
+ HSleep(10);
}
}
else if(strcmpi(w1,"use_sql_mob_skill_db")==0) {
@@ -3776,7 +3776,7 @@ int inter_config_read(char *cfgName) {
"Please upgrade to the non-sql version as soon as possible. "
"Bug reports or pull requests concerning the SQL monster skill database are no longer accepted.\n");
ShowInfo("Resuming in 10 seconds...\n");
- sleep(10);
+ HSleep(10);
}
}
else if(strcmpi(w1,"autotrade_merchants_db")==0)