diff options
author | rud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-29 14:33:16 +0000 |
---|---|---|
committer | rud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-29 14:33:16 +0000 |
commit | fbf1a94396d200e8ae6e6d0d30e291e95f85cf90 (patch) | |
tree | df95f11658e24a27a369b40d0744c3d657a3cfcc /src/map/status.c | |
parent | 131a6f555562e56dfb180b310d4c893a993e7b15 (diff) | |
download | hercules-fbf1a94396d200e8ae6e6d0d30e291e95f85cf90.tar.gz hercules-fbf1a94396d200e8ae6e6d0d30e291e95f85cf90.tar.bz2 hercules-fbf1a94396d200e8ae6e6d0d30e291e95f85cf90.tar.xz hercules-fbf1a94396d200e8ae6e6d0d30e291e95f85cf90.zip |
Fixed some compile warnings.(bugreport:6352, bugreport:6361)
Follow up r16520 added some missing entry in packet_db.txt where my patch doesn't include it...XD
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16530 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c index fb9d8320c..987de30fe 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -3234,7 +3234,9 @@ static signed short status_calc_mdef2(struct block_list *,struct status_change * static unsigned short status_calc_speed(struct block_list *,struct status_change *,int); static short status_calc_aspd_rate(struct block_list *,struct status_change *,int); static unsigned short status_calc_dmotion(struct block_list *bl, struct status_change *sc, int dmotion); +#ifdef RENEWAL_ASPD static short status_calc_aspd(struct block_list *bl, struct status_change *sc, short flag); +#endif static unsigned int status_calc_maxhp(struct block_list *,struct status_change *,unsigned int); static unsigned int status_calc_maxsp(struct block_list *,struct status_change *,unsigned int); static unsigned char status_calc_element(struct block_list *bl, struct status_change *sc, int element); @@ -5058,6 +5060,7 @@ static unsigned short status_calc_speed(struct block_list *bl, struct status_cha return (short)cap_value(speed,10,USHRT_MAX); } +#ifdef RENEWAL_ASPD // flag&1 - fixed value [malufett] // flag&2 - percentage value static short status_calc_aspd(struct block_list *bl, struct status_change *sc, short flag) @@ -5181,6 +5184,7 @@ static short status_calc_aspd(struct block_list *bl, struct status_change *sc, s return ( flag&1? (skills1 + pots) : skills2 ); } +#endif /// Calculates an object's ASPD modifier (alters the base amotion value). /// Note that the scale of aspd_rate is 1000 = 100%. |