VC6 is returning 0 every time. I debugged, here are the values.Code:double damage = (player1.attack * player1.curWeapon->power) /(mob.defense * mob.armor) * (player1.curWeapon->power * rando); return damage;
attack = 14
armor = 12
defense = 12
power = 7
rando = 1.5
I did it all in a calculator, and it came out to 8 or something. What's wrong?? Please help me out man!