From de3e9a7aea38e374a91d9f036da043f14e58b9f3 Mon Sep 17 00:00:00 2001 From: glighta Date: Fri, 30 Nov 2012 04:13:46 +0000 Subject: -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 --- src/map/status.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/map/status.c') 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) -- cgit v1.2.3-70-g09d2