diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-27 18:00:29 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-27 18:00:29 +0000 |
commit | b9e470f8ecc1441c5377a0fec838abb6773d331d (patch) | |
tree | e96d2bc07c81b4a9b6115c14a98cfcabc65dfe17 | |
parent | 9599b05c3cd2145ea9cd9fe7ce98912705942740 (diff) | |
download | hercules-b9e470f8ecc1441c5377a0fec838abb6773d331d.tar.gz hercules-b9e470f8ecc1441c5377a0fec838abb6773d331d.tar.bz2 hercules-b9e470f8ecc1441c5377a0fec838abb6773d331d.tar.xz hercules-b9e470f8ecc1441c5377a0fec838abb6773d331d.zip |
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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11986 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | src/map/mob.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 2a0b5bc53..5c15798d1 100644 --- a/Changelog-Trunk.txt +++ b/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) diff --git a/src/map/mob.c b/src/map/mob.c index 3e3e7719d..8bd7a86c5 100644 --- a/src/map/mob.c +++ b/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 |