diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-09 21:33:39 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-09 21:33:39 +0000 |
commit | c26870103f6031b315bdc1a4553f5cc47bb43ef0 (patch) | |
tree | 1c5bc05dd333057b1c371b824e81246857c82f47 /src/map | |
parent | a94228021e93b27de5f1c16bfbe580f57724b73e (diff) | |
download | hercules-c26870103f6031b315bdc1a4553f5cc47bb43ef0.tar.gz hercules-c26870103f6031b315bdc1a4553f5cc47bb43ef0.tar.bz2 hercules-c26870103f6031b315bdc1a4553f5cc47bb43ef0.tar.xz hercules-c26870103f6031b315bdc1a4553f5cc47bb43ef0.zip |
- Some small cleanups in mob_read_mobavail (or however it is named)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5542 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/mob.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 2b267f201..50bd3fe1c 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -4543,12 +4543,12 @@ static int mob_readdb_mobavail(void) k=atoi(str[1]);
if(k < 0)
continue;
- if (j > 3 && k > 23 && k < 69)
+ if (j >= 12 && k > 23 && k < 69)
k += 3977; // advanced job/baby class
mob_db_data[class_]->view_class=k;
//Player sprites
- if(pcdb_checkid(k)) {
+ if(pcdb_checkid(k) && j>=12) {
mob_db_data[class_]->sex=atoi(str[2]);
mob_db_data[class_]->hair=atoi(str[3]);
mob_db_data[class_]->hair_color=atoi(str[4]);
@@ -4560,7 +4560,7 @@ static int mob_readdb_mobavail(void) mob_db_data[class_]->option=atoi(str[10])&~0x46;
mob_db_data[class_]->clothes_color=atoi(str[11]); // Monster player dye option - Valaris
}
- else if(atoi(str[2]) > 0) mob_db_data[class_]->equip=atoi(str[2]); // mob equipment [Valaris]
+ else if(str[2] && atoi(str[2]) > 0) mob_db_data[class_]->equip=atoi(str[2]); // mob equipment [Valaris]
ln++;
}
|