summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-01-12 17:12:53 +0100
committerHaru <haru@dotalux.com>2016-01-12 17:32:17 +0100
commit77ebd051325e8609da224295d788a1d473521d3a (patch)
treed6a9afa8272efd4489b1e554a2662f1bc0d4cb5c /src/map/battle.c
parented05ed85c0bc44980168f730d02dfd379a2bfda9 (diff)
downloadhercules-77ebd051325e8609da224295d788a1d473521d3a.tar.gz
hercules-77ebd051325e8609da224295d788a1d473521d3a.tar.bz2
hercules-77ebd051325e8609da224295d788a1d473521d3a.tar.xz
hercules-77ebd051325e8609da224295d788a1d473521d3a.zip
Whitespace cleanup (removed alignment tabs or trailing whitespace at line end)
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 3b3ea2047..44adef051 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -4118,7 +4118,8 @@ struct Damage battle_calc_misc_attack(struct block_list *src,struct block_list *
#else
short totaldef = tstatus->def2 + (short)status->get_def(target);
#endif
- if ( sd ) wd.damage += sd->bonus.arrow_atk;
+ if (sd != NULL)
+ wd.damage += sd->bonus.arrow_atk;
md.damage = (int)(3 * (1 + wd.damage) * (5 + skill_lv) / 5.0f);
md.damage -= totaldef;
@@ -4583,7 +4584,7 @@ struct Damage battle_calc_weapon_attack(struct block_list *src,struct block_list
skill_id == NJ_KIRIKAGE))
{
short cri = sstatus->cri;
- if (sd) {
+ if (sd != NULL) {
// if show_katar_crit_bonus is enabled, it already done the calculation in status.c
if (!battle_config.show_katar_crit_bonus && sd->status.weapon == W_KATAR) {
cri <<= 1;