Browse Source

Fixed Monster Animation Bug:
-- Example
Before: You JT a evil druid, shortly after it finishes taking damage it'd appear near you without showing it moving again.
Now: walk animation no longer glitches, it moves \o/!
bugreport:1255

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15148 54d463be-8e91-2dee-dedb-b68131a5f0ec

shennetsind 13 năm trước cách đây
mục cha
commit
019165a3a9
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      src/map/unit.c

+ 4 - 2
src/map/unit.c

@@ -244,9 +244,11 @@ static int unit_walktoxy_timer(int tid, unsigned int tick, int id, intptr_t data
 	else
 		i = status_get_speed(bl);
 
-	if(i > 0)
+	if(i > 0) {
 		ud->walktimer = add_timer(tick+i,unit_walktoxy_timer,id,i);
-	else if(ud->state.running) {
+		if( md )
+			clif_move(ud);
+	} else if(ud->state.running) {
 		//Keep trying to run.
 		if (!unit_run(bl))
 			ud->state.running = 0;