From 77fa315a25b08c429758d109b08a67a6e6a52e50 Mon Sep 17 00:00:00 2001 From: celest Date: Wed, 23 Mar 2005 04:23:22 +0000 Subject: Fixed some compile errors git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1273 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 32 ++++++++++++++++---------------- src/map/skill.c | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/map/mob.c b/src/map/mob.c index 7a39af029..d4d0fd45d 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -4350,21 +4350,6 @@ static int mob_readdb_race(void) return 0; } -void mob_reload(void) -{ -#ifndef TXT_ONLY - if(db_use_sqldbs) - mob_read_sqldb(); - else -#endif /* TXT_ONLY */ - mob_readdb(); - - mob_readdb_mobavail(); - mob_read_randommonster(); - mob_readskilldb(); - mob_readdb_race(); -} - #ifndef TXT_ONLY /*========================================== * SQL reading @@ -4526,8 +4511,23 @@ static int mob_read_sqldb(void) } return 0; } - #endif /* not TXT_ONLY */ + +void mob_reload(void) +{ +#ifndef TXT_ONLY + if(db_use_sqldbs) + mob_read_sqldb(); + else +#endif /* TXT_ONLY */ + mob_readdb(); + + mob_readdb_mobavail(); + mob_read_randommonster(); + mob_readskilldb(); + mob_readdb_race(); +} + /*========================================== * Circumference initialization of mob *------------------------------------------ diff --git a/src/map/skill.c b/src/map/skill.c index f40420dcf..d5bd61a4c 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -8753,7 +8753,7 @@ int skill_produce_mix( struct map_session_data *sd, if(skill_produce_db[idx].req_skill==AM_PHARMACY) { make_per = pc_checkskill(sd,AM_LEARNINGPOTION)*100 + pc_checkskill(sd,AM_PHARMACY)*300 + sd->status.job_level*20 - + sd->status.paramc[4]*10+sd->status.paramc[5]*10; + + sd->paramc[4]*10+sd->paramc[5]*10; if(nameid >= 501 && nameid <= 505) // Normal potions make_per += 2000 + pc_checkskill(sd,AM_POTIONPITCHER)*100; -- cgit v1.2.3-70-g09d2