int to float conversion

This commit is contained in:
Arthur Dene Ice
2014-05-13 18:23:56 -07:00
parent da2f0b55b2
commit f82e0e5b4e
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1822,7 +1822,7 @@ ENCODE(OP_Damage) {
OUT(type); OUT(type);
OUT(spellid); OUT(spellid);
OUT(damage); OUT(damage);
eq->sequence = emu->sequence; eq->sequence = (float)emu->sequence;
FINISH_ENCODE(); FINISH_ENCODE();
} }
@@ -1844,7 +1844,7 @@ ENCODE(OP_Action) {
OUT(source); OUT(source);
OUT(level); OUT(level);
eq->instrument_mod = 1.0f + (emu->instrument_mod - 10) / 10.0f; 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(type);
OUT(spell); OUT(spell);
eq->level2 = eq->level; eq->level2 = eq->level;
+2 -2
View File
@@ -987,9 +987,9 @@ bool Bot::AI_IdleCastCheck() {
if(botClass == CLERIC || botClass == PALADIN || botClass == RANGER) { if(botClass == CLERIC || botClass == PALADIN || botClass == RANGER) {
if(!entity_list.Bot_AICheckCloseBeneficialSpells(this, 100, (float)BotAISpellRange, SpellType_Cure)) { if(!entity_list.Bot_AICheckCloseBeneficialSpells(this, 100, (float)BotAISpellRange, SpellType_Cure)) {
if (!AICastSpell(this, 100, SpellType_Heal)) { 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 (!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)) {
// //
} }
} }