From f82e0e5b4e584125f628d24682bdff66922018d4 Mon Sep 17 00:00:00 2001 From: Arthur Dene Ice Date: Tue, 13 May 2014 18:23:56 -0700 Subject: [PATCH] int to float conversion --- common/patches/Underfoot.cpp | 4 ++-- zone/botspellsai.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/patches/Underfoot.cpp b/common/patches/Underfoot.cpp index f11b34abb..55b46adc6 100644 --- a/common/patches/Underfoot.cpp +++ b/common/patches/Underfoot.cpp @@ -1822,7 +1822,7 @@ ENCODE(OP_Damage) { OUT(type); OUT(spellid); OUT(damage); - eq->sequence = emu->sequence; + eq->sequence = (float)emu->sequence; FINISH_ENCODE(); } @@ -1844,7 +1844,7 @@ ENCODE(OP_Action) { OUT(source); OUT(level); eq->instrument_mod = 1.0f + (emu->instrument_mod - 10) / 10.0f; - eq->knockback_angle = emu->sequence; + eq->knockback_angle = (float)emu->sequence; OUT(type); OUT(spell); eq->level2 = eq->level; diff --git a/zone/botspellsai.cpp b/zone/botspellsai.cpp index d34968980..302bbf8be 100644 --- a/zone/botspellsai.cpp +++ b/zone/botspellsai.cpp @@ -987,9 +987,9 @@ bool Bot::AI_IdleCastCheck() { if(botClass == CLERIC || botClass == PALADIN || botClass == RANGER) { if(!entity_list.Bot_AICheckCloseBeneficialSpells(this, 100, (float)BotAISpellRange, SpellType_Cure)) { if (!AICastSpell(this, 100, SpellType_Heal)) { - if(!entity_list.Bot_AICheckCloseBeneficialSpells(this, 100, BotAISpellRange, SpellType_Heal)) { + if(!entity_list.Bot_AICheckCloseBeneficialSpells(this, 100, (float)BotAISpellRange, SpellType_Heal)) { if (!AICastSpell(this, 100, SpellType_Buff)) { - if(!entity_list.Bot_AICheckCloseBeneficialSpells(this, 100, BotAISpellRange, SpellType_Buff)) { + if(!entity_list.Bot_AICheckCloseBeneficialSpells(this, 100, (float)BotAISpellRange, SpellType_Buff)) { // } }