summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-19 22:02:26 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-19 22:02:26 +0000
commit4718c2c268bacd011912a5a3a483f192995eee9a (patch)
treeb7ba043c17232df91183382e38cd29a2b35785fe /src/map/npc.c
parent566c55b79cfb5f09bd9ba9543eca1ff74786578c (diff)
downloadhercules-4718c2c268bacd011912a5a3a483f192995eee9a.tar.gz
hercules-4718c2c268bacd011912a5a3a483f192995eee9a.tar.bz2
hercules-4718c2c268bacd011912a5a3a483f192995eee9a.tar.xz
hercules-4718c2c268bacd011912a5a3a483f192995eee9a.zip
Changed the dynamic mobs system to also unload mobs that have respawn time but are already spawned - 22M less mem usage (bugreport:1197).
Also added a check to not respawn mobs on maps with no players (potentially unsafe operation, needs further inspection). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12402 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 68b979a28..58cfac285 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2335,7 +2335,7 @@ static const char* npc_parse_mob(char* w1, char* w2, char* w3, char* w4, const c
data = aMalloc(sizeof(struct spawn_data));
memcpy(data, &mob, sizeof(struct spawn_data));
- if( !battle_config.dynamic_mobs || data->delay1 || data->delay2 ) {
+ if( !battle_config.dynamic_mobs ) {
data->state.dynamic = false;
npc_parse_mob2(data);
npc_delay_mob += data->num;