From 9e048bbd7ffb4054f23f1d33f975c1adc48f4af9 Mon Sep 17 00:00:00 2001 From: Lance Date: Wed, 22 Mar 2006 07:26:34 +0000 Subject: [PATCH] * Fixed compiler warnings in battle.c git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5700 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 1 + src/map/battle.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index e0327370e7..0eb5b24d4c 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -5,6 +5,7 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. EV GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS 2006/03/22 + * Fixed compiler warnings in battle.c [Lance] * Changes by [reddozen] --> - Updated Full Buster's damage, status effects, and skill levels - Bullseye now only uses 1 coin diff --git a/src/map/battle.c b/src/map/battle.c index fc60a1eba0..64cd00fdb3 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;