diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-22 21:26:17 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-22 21:26:17 +0000 |
commit | a751d2c64853018600bcc5491ec854cc7ddfb070 (patch) | |
tree | d5ae1eae8d6411bd4df4455304bb2bae87ddccd6 /src/map/mob.c | |
parent | 6afc32ebbda2dd1edd6085662baaf61c96af6455 (diff) | |
download | hercules-a751d2c64853018600bcc5491ec854cc7ddfb070.tar.gz hercules-a751d2c64853018600bcc5491ec854cc7ddfb070.tar.bz2 hercules-a751d2c64853018600bcc5491ec854cc7ddfb070.tar.xz hercules-a751d2c64853018600bcc5491ec854cc7ddfb070.zip |
- Fixed a crash on the mobspawn script command.
- Made SC_FLEET increase batk as well as watk.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8444 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 5e6284aa4..18c845baf 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -265,8 +265,16 @@ struct mob_data *mob_once_spawn_sub(struct block_list *bl, int m, data.m = m; data.num = 1; data.class_ = class_; - strncpy(data.name, mobname, NAME_LENGTH-1); - strncpy(data.eventname, event, 50); + if (mobname) + strncpy(data.name, mobname, NAME_LENGTH-1); + else + if(battle_config.override_mob_names==1) + strcpy(data.name,"--en--"); + else + strcpy(data.name,"--ja--"); + + if (event) + strncpy(data.eventname, event, 50); if (bl && (x < 0 || y < 0))//Locate spot around player. map_search_freecell(bl, m, &x, &y, 1, 1, 0); |