summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-02 18:25:46 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-02 18:25:46 +0000
commit3265481434f0dfd9e3e74cc8640803973f05f2c3 (patch)
treeb274dd360a5ef4574188468e709287eb415f0cfc /src
parent57dff6a693955d56a8b316f78411a4f50e061a0d (diff)
downloadhercules-3265481434f0dfd9e3e74cc8640803973f05f2c3.tar.gz
hercules-3265481434f0dfd9e3e74cc8640803973f05f2c3.tar.bz2
hercules-3265481434f0dfd9e3e74cc8640803973f05f2c3.tar.xz
hercules-3265481434f0dfd9e3e74cc8640803973f05f2c3.zip
- Fixed npc_gettimerevent_tick returning the difference since the last triggered label instead of total elapsed time for the npc-timer.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5874 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/npc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index b5dd3f42a..d58f4ec66 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -756,10 +756,10 @@ int npc_gettimerevent_tick(struct npc_data *nd)
//If within a timer, set the tick value to the time passed since the beginning of the timer.
if (sd) {
if(sd->npc_timer_id != -1)
- tick = DIFF_TICK(gettick(), nd->u.scr.timertick);
+ tick += DIFF_TICK(gettick(), nd->u.scr.timertick);
} else {
if(nd->u.scr.timerid!=-1)
- tick = DIFF_TICK(gettick(), nd->u.scr.timertick);
+ tick += DIFF_TICK(gettick(), nd->u.scr.timertick);
}
return tick;