diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-08-31 22:56:05 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-08-31 22:56:05 +0000 |
commit | 08c870656aeb76d839a8ad2fd071818b8618f899 (patch) | |
tree | 3ac8cc1544cd0a60f00312cdb6c8c21f62f287a8 /src/map/clif.c | |
parent | 409cb0381295716d654fd2ee5021e1011a45ab80 (diff) | |
download | hercules-08c870656aeb76d839a8ad2fd071818b8618f899.tar.gz hercules-08c870656aeb76d839a8ad2fd071818b8618f899.tar.bz2 hercules-08c870656aeb76d839a8ad2fd071818b8618f899.tar.xz hercules-08c870656aeb76d839a8ad2fd071818b8618f899.zip |
- A proper mercenary lifetime calculation.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13165 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index c56fc3f26..67ab85b39 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -12434,7 +12434,7 @@ void clif_mercenary_info(struct map_session_data *sd) WFIFOL(fd,52) = status->max_hp; WFIFOL(fd,56) = status->sp; WFIFOL(fd,60) = status->max_sp; - WFIFOL(fd,64) = (int)time(NULL) + (md->mercenary.remain_life_time / 1000); + WFIFOL(fd,64) = (int)time(NULL) + (mercenary_get_lifetime(md) / 1000); WFIFOW(fd,68) = 0; // Loyalty WFIFOL(fd,70) = 0; // Summon Count WFIFOL(fd,74) = md->mercenary.kill_count; |