summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-22 18:08:37 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-22 18:08:37 +0000
commit66be3d8e66260ca148d768b887695729ded98abb (patch)
treec33bb1ccfd358b98cec22e750a395285ba5df31e /src/map/npc.c
parent23d8fb13a79b0378db2ef6860d9b0b68cfacb9d6 (diff)
downloadhercules-66be3d8e66260ca148d768b887695729ded98abb.tar.gz
hercules-66be3d8e66260ca148d768b887695729ded98abb.tar.bz2
hercules-66be3d8e66260ca148d768b887695729ded98abb.tar.xz
hercules-66be3d8e66260ca148d768b887695729ded98abb.zip
- Corrected mob spawn utilization of the delay1/delay2 values (one is respawn delay base, the second is random variance added on top of it). Cleaned up related code.
- Changed abit map_add_block to prevent adding a player object which is invalid (not authed, waiting to be disconnected) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11964 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 3b9acc89c..e95a32c71 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2182,11 +2182,6 @@ static const char* npc_parse_mob(char* w1, char* w2, char* w3, char* w4, const c
return strchr(start,'\n');// skip and continue
}
- //Fixed according to latest kRO update (needs optimization)
- temp = mob.delay1;
- mob.delay1 += mob.delay2;
- mob.delay2 = temp;
-
mob.num = (unsigned short)num;
mob.class_ = (short) class_;
mob.x = (unsigned short)x;