summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-22 07:26:34 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-22 07:26:34 +0000
commit8c4dac13b816b2e3d95cd068f7c2c73ef52bb541 (patch)
treecd51e7add422ade4b71e3927b73a8597a3b77cf8 /src
parentcdd9705b238a13fadde43448182e4b0a350bac86 (diff)
downloadhercules-8c4dac13b816b2e3d95cd068f7c2c73ef52bb541.tar.gz
hercules-8c4dac13b816b2e3d95cd068f7c2c73ef52bb541.tar.bz2
hercules-8c4dac13b816b2e3d95cd068f7c2c73ef52bb541.tar.xz
hercules-8c4dac13b816b2e3d95cd068f7c2c73ef52bb541.zip
* Fixed compiler warnings in battle.c
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5700 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/battle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index fc60a1eba..64cd00fdb 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3015,7 +3015,7 @@ struct Damage battle_calc_misc_attack(
//This equation is not official, but it's the closest to the official one
//that Viccious Pucca and the other folks at the forums could come up with. [Skotlex]
// updated the formula based on a Japanese formula found to be exact [Reddozen]
- damage = (0.7 * status_get_vit(target) * (int_ * int_)) / (status_get_vit(target) + int_);
+ damage = (int)((0.7 * status_get_vit(target) * (int_ * int_)) / (status_get_vit(target) + int_));
if (tsd) damage/=2;
aflag = (aflag&~BF_RANGEMASK)|BF_LONG;
break;