summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-09 01:25:19 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-09 01:25:19 +0000
commit8bd7cb69b1242ac0bf42a6bb3f77afda516d1fe9 (patch)
treee8dbfa89bca142b0813f16392a291dcbccc174bb /src/map/atcommand.c
parent5487756030da284dd45d9114e6c820154607af6c (diff)
downloadhercules-8bd7cb69b1242ac0bf42a6bb3f77afda516d1fe9.tar.gz
hercules-8bd7cb69b1242ac0bf42a6bb3f77afda516d1fe9.tar.bz2
hercules-8bd7cb69b1242ac0bf42a6bb3f77afda516d1fe9.tar.xz
hercules-8bd7cb69b1242ac0bf42a6bb3f77afda516d1fe9.zip
* Added const to the return value of get_timer.
* Added a maximum timer interval. Avoids server shutdowns being delayed for ~10 seconds under some circumstances on windows. * Replaced the fake timer heap (ordered array) with a binary min heap. (actually, this is just a merge and has been in use for months) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12926 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 3338a3b04..1bdbf0697 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -4787,8 +4787,8 @@ char* txt_time(unsigned int duration)
*------------------------------------------*/
int atcommand_servertime(const int fd, struct map_session_data* sd, const char* command, const char* message)
{
- struct TimerData * timer_data;
- struct TimerData * timer_data2;
+ const struct TimerData * timer_data;
+ const struct TimerData * timer_data2;
time_t time_server; // variable for number of seconds (used with time() function)
struct tm *datetime; // variable for time in structure ->tm_mday, ->tm_sec, ...
char temp[256];