From 1e1281b8058666571c1bda1b333487abb60786a6 Mon Sep 17 00:00:00 2001 From: Arthur Dene Ice Date: Sat, 10 May 2014 14:59:08 -0700 Subject: [PATCH] conversion of int to float explicitly --- zone/spells.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zone/spells.cpp b/zone/spells.cpp index ddf90a91c..4e3ae6dbb 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -711,7 +711,7 @@ bool Client::CheckFizzle(uint16 spell_id) // > 0 --> skill is lower, higher chance of fizzle // < 0 --> skill is better, lower chance of fizzle // the max that diff can be is +- 235 - float diff = par_skill + spells[spell_id].basediff - act_skill; + float diff = (float)(par_skill + spells[spell_id].basediff - act_skill); // if you have high int/wis you fizzle less, you fizzle more if you are stupid if(GetClass() == BARD) @@ -4428,7 +4428,7 @@ float Mob::ResistSpell(uint8 resist_type, uint16 spell_id, Mob *caster, bool use return 100; } - return partial_modifier; + return (float)partial_modifier; } } } @@ -4507,7 +4507,7 @@ float Mob::GetAOERange(uint16 spell_id) { if(IsBardSong(spell_id) && IsBeneficialSpell(spell_id)) { //Live AA - Extended Notes, SionachiesCrescendo - float song_bonus = aabonuses.SongRange + spellbonuses.SongRange + itembonuses.SongRange; + float song_bonus = (float)(aabonuses.SongRange + spellbonuses.SongRange + itembonuses.SongRange); range += range*song_bonus /100.0f; }