Browse Source

* Fixed pets' speed would not get updated to normal, after they finished running to their owner (bugreport:1304).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14838 54d463be-8e91-2dee-dedb-b68131a5f0ec
ai4rei 14 years ago
parent
commit
982ce2323c
2 changed files with 2 additions and 0 deletions
  1. 1 0
      Changelog-Trunk.txt
  2. 1 0
      src/map/pet.c

+ 1 - 0
Changelog-Trunk.txt

@@ -1,6 +1,7 @@
 Date	Added
 
 2011/05/29
+	* Fixed pets' speed would not get updated to normal, after they finished running to their owner (bugreport:1304). [Ai4rei]
 	* Fixed NULL pointer in status_change_timer (SC_BERSERK), when the HP subtraction causes the HP drop below 100, but does not exceed remaining HP (bugreport:1150, related r8705, r11786 and r12061). [Ai4rei]
 	* Updated script commands 'npcshopitem', 'npcshopadditem' and 'npcshopdelitem' to support cashshops as well (bugreport:4928). [Ai4rei]
 	* Fixed players could add themselves to their friendslist through their clones or WPE (bugreport:4909). [Ai4rei]

+ 1 - 0
src/map/pet.c

@@ -858,6 +858,7 @@ static int pet_ai_sub_hard(struct pet_data *pd, struct map_session_data *sd, uns
 		if (pd->ud.walktimer != INVALID_TIMER)
 			return 0; //Wait until the pet finishes walking back to master.
 		pd->status.speed = pd->petDB->speed;
+		pd->ud.state.change_walk_target = pd->ud.state.speed_changed = 1;
 	}
 	
 	if (pd->target_id) {