Ver código fonte

Re-added a missing mob last_thinktime timer initialization when a mob spawns, causing mob AI to freeze (mistake in r11964)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11986 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage 17 anos atrás
pai
commit
f16dcdf4d5
2 arquivos alterados com 3 adições e 0 exclusões
  1. 2 0
      Changelog-Trunk.txt
  2. 1 0
      src/map/mob.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2007/12/27
+	* Re-added a missing mob last_thinktime timer initialization when a mob
+	  spawns, causing mob AI to freeze (mistake in r11964) [ultramage]
 	* Changed the configure script:
 	- refined the mysql test (wasn't detecting 64 libraries compiled without -m64)
 	- added a test for clock_gettime in -lrt (required for Debian)

+ 1 - 0
src/map/mob.c

@@ -642,6 +642,7 @@ int mob_spawn (struct mob_data *md)
 	int i=0;
 	unsigned int c =0, tick = gettick();
 
+	md->last_thinktime = tick;
 	if (md->bl.prev != NULL)
 		unit_remove_map(&md->bl,2);
 	else