Procházet zdrojové kódy

Fix issue #1651
- The timer event wasn't updated on last tick event

Atemo před 8 roky
rodič
revize
d3f0aec324
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/map/npc.c

+ 1 - 1
src/map/npc.c

@@ -811,7 +811,7 @@ int npc_settimerevent_tick(struct npc_data* nd, int newtimer)
 	nd->u.scr.rid = 0;
 	nd->u.scr.rid = 0;
 
 
 	// Check if timer is started
 	// Check if timer is started
-	flag = (nd->u.scr.timerid != INVALID_TIMER);
+	flag = (nd->u.scr.timerid != INVALID_TIMER || nd->u.scr.timertick);
 
 
 	if( flag ) npc_timerevent_stop(nd);
 	if( flag ) npc_timerevent_stop(nd);
 	nd->u.scr.timer = newtimer;
 	nd->u.scr.timer = newtimer;