aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-11-17 20:50:38 -0800
committermaximius <none@none>2009-11-17 20:50:38 -0800
commitd03c14e0b7f37fb09048b8cb2be363cb20e30b7a (patch)
treeb25ad95c445bc225418126846647bfd13eaba234 /src/game/Unit.cpp
parent27d3bf466c447f8df587eb29f5be48d837b6027c (diff)
*Furor now stores and restores Energy properly, thanks lobuz
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index e5eaadbedff..bd5e96c9adc 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -8012,20 +8012,19 @@ void Unit::setPowerType(Powers new_powertype)
case POWER_MANA:
break;
case POWER_RAGE:
- SetMaxPower(POWER_RAGE,GetCreatePowers(POWER_RAGE));
- SetPower( POWER_RAGE,0);
+ SetMaxPower(POWER_RAGE, GetCreatePowers(POWER_RAGE));
+ SetPower(POWER_RAGE, 0);
break;
case POWER_FOCUS:
- SetMaxPower(POWER_FOCUS,GetCreatePowers(POWER_FOCUS));
- SetPower( POWER_FOCUS,GetCreatePowers(POWER_FOCUS));
+ SetMaxPower(POWER_FOCUS, GetCreatePowers(POWER_FOCUS));
+ SetPower(POWER_FOCUS, GetCreatePowers(POWER_FOCUS));
break;
case POWER_ENERGY:
- SetMaxPower(POWER_ENERGY,GetCreatePowers(POWER_ENERGY));
- SetPower( POWER_ENERGY,0);
+ SetMaxPower(POWER_ENERGY, GetCreatePowers(POWER_ENERGY));
break;
case POWER_HAPPINESS:
- SetMaxPower(POWER_HAPPINESS,GetCreatePowers(POWER_HAPPINESS));
- SetPower(POWER_HAPPINESS,GetCreatePowers(POWER_HAPPINESS));
+ SetMaxPower(POWER_HAPPINESS, GetCreatePowers(POWER_HAPPINESS));
+ SetPower(POWER_HAPPINESS, GetCreatePowers(POWER_HAPPINESS));
break;
}
}