diff options
author | glighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-30 04:13:46 +0000 |
---|---|---|
committer | glighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-11-30 04:13:46 +0000 |
commit | de3e9a7aea38e374a91d9f036da043f14e58b9f3 (patch) | |
tree | 0db9e5ba7201a1fc332b8abe87d75d6c3069c7ee /src/map/status.c | |
parent | a97c2837c050d53bed4010f3399dcd5d0ad8b269 (diff) | |
download | hercules-de3e9a7aea38e374a91d9f036da043f14e58b9f3.tar.gz hercules-de3e9a7aea38e374a91d9f036da043f14e58b9f3.tar.bz2 hercules-de3e9a7aea38e374a91d9f036da043f14e58b9f3.tar.xz hercules-de3e9a7aea38e374a91d9f036da043f14e58b9f3.zip |
-Fix old warnings. 1st step to get ride of -wno flag in configure.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16987 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/status.c b/src/map/status.c index 7bca41572..fcefedbbe 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1942,7 +1942,7 @@ static unsigned short status_base_atk(const struct block_list *bl, const struct return cap_value(str, 0, USHRT_MAX); } -#ifndef RENEWAL +#ifndef RENEWAL static inline unsigned short status_base_matk_min(const struct status_data* status){ return status->int_+(status->int_/7)*(status->int_/7); } static inline unsigned short status_base_matk_max(const struct status_data* status){ return status->int_+(status->int_/5)*(status->int_/5); } #else @@ -3806,7 +3806,7 @@ void status_calc_bl_main(struct block_list *bl, /*enum scb_flag*/int flag) status->matk_min = status_calc_matk(bl, sc, status->matk_min); status->matk_max = status_calc_matk(bl, sc, status->matk_max); - if (bl->type&BL_HOM && battle_config.hom_setting&0x20 //Hom Min Matk is always the same as Max Matk + if ((bl->type&BL_HOM && battle_config.hom_setting&0x20) //Hom Min Matk is always the same as Max Matk || ( sc && sc->data[SC_RECOGNIZEDSPELL] )) status->matk_min = status->matk_max; @@ -6210,7 +6210,7 @@ int status_get_sc_def(struct block_list *bl, enum sc_type type, int rate, int ti tick -= (status->int_ + status->luk) / 20 * 1000; break; case SC_STASIS: - //5 second (fixed) + { Stasis Skill level * 5 - (Target’s VIT + DEX) / 20 } + //5 second (fixed) + { Stasis Skill level * 5 - (Target�s VIT + DEX) / 20 } tick -= (status->vit + status->dex) / 20 * 1000; break; case SC_WHITEIMPRISON: @@ -10555,7 +10555,7 @@ int status_change_timer_sub(struct block_list *bl, va_list ap) /*========================================== * Clears buffs/debuffs of a character. - * type&1 -> buffs, type&2 -> debuffs + * type&1 -> buffs, type&2 -> debuffs * type&4 -> especific debuffs(implemented with refresh) *------------------------------------------*/ int status_change_clear_buffs(struct block_list *bl, int type) |