Skip to content

Commit

Permalink
Remove casts
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli2 committed Dec 31, 2015
1 parent 7b27708 commit 8399dd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,8 @@ static const float skill_attribute_factors[max_skills][max_attributes] = {
*/
static void ARX_PLAYER_ComputePlayerStats() {

player.lifePool.max = (float)player.m_attribute.constitution * (float)(player.level + 2);
player.manaPool.max = (float)player.m_attribute.mind * (float)(player.level + 1);
player.lifePool.max = player.m_attribute.constitution * (player.level + 2);
player.manaPool.max = player.m_attribute.mind * (player.level + 1);

float base_defense = player.m_skill.defense + player.m_attribute.constitution * 3;
float fCalc = base_defense * ( 1.0f / 10 ) - 1 ;
Expand Down

0 comments on commit 8399dd5

Please sign in to comment.