diff options
author | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-28 11:04:44 +0000 |
---|---|---|
committer | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-28 11:04:44 +0000 |
commit | 38c37abce31ac6d4adc4ad6dbffe59e1b243f1b5 (patch) | |
tree | 432f625d0748e59ff6b4e9b1d1c91f782721be09 /src/map/battle.c | |
parent | 81d6d4816f3a80f62013750c780a762c80af3b47 (diff) | |
download | hercules-38c37abce31ac6d4adc4ad6dbffe59e1b243f1b5.tar.gz hercules-38c37abce31ac6d4adc4ad6dbffe59e1b243f1b5.tar.bz2 hercules-38c37abce31ac6d4adc4ad6dbffe59e1b243f1b5.tar.xz hercules-38c37abce31ac6d4adc4ad6dbffe59e1b243f1b5.zip |
Fixed : - "uninitialized local variable 'i' used" in skill.c
- "warning: suggest explicit braces to avoid ambiguous `else'" in battle.c
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7943 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index ad5f25d0a..84978c67f 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -1196,11 +1196,12 @@ static struct Damage battle_calc_weapon_attack( // Added split damage for Huuma if (skill_num == NJ_HUUMA) // Divide ATK in case of multiple targets skill - if(wflag>0) - wd.damage/= wflag; - else if(battle_config.error_log) - ShowError("0 enemies targeted by Throw Huuma, divide per 0 avoided!\n"); - + { + if(wflag>0) + wd.damage/= wflag; + else if(battle_config.error_log) + ShowError("0 enemies targeted by Throw Huuma, divide per 0 avoided!\n"); + } //Add any bonuses that modify the base baseatk+watk (pre-skills) if(sd) { |