From d19e12708001fbef2308be0e8cb5375a2ac7af48 Mon Sep 17 00:00:00 2001 From: Spp Date: Wed, 7 Apr 2010 19:14:10 +0200 Subject: Code style (game + scripts only): "if(" --> "if (" --HG-- branch : trunk --- src/game/PointMovementGenerator.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/game/PointMovementGenerator.cpp') diff --git a/src/game/PointMovementGenerator.cpp b/src/game/PointMovementGenerator.cpp index 94125fbbffa..d343dab5ad0 100644 --- a/src/game/PointMovementGenerator.cpp +++ b/src/game/PointMovementGenerator.cpp @@ -38,12 +38,12 @@ void PointMovementGenerator::Initialize(T &unit) template bool PointMovementGenerator::Update(T &unit, const uint32 &diff) { - if(!&unit) + if (!&unit) return false; - if(unit.hasUnitState(UNIT_STAT_ROOT | UNIT_STAT_STUNNED)) + if (unit.hasUnitState(UNIT_STAT_ROOT | UNIT_STAT_STUNNED)) { - if(unit.hasUnitState(UNIT_STAT_CHARGING)) + if (unit.hasUnitState(UNIT_STAT_CHARGING)) return false; else return true; @@ -53,7 +53,7 @@ bool PointMovementGenerator::Update(T &unit, const uint32 &diff) i_destinationHolder.UpdateTraveller(traveller, diff); - if(i_destinationHolder.HasArrived()) + if (i_destinationHolder.HasArrived()) { unit.clearUnitState(UNIT_STAT_MOVE); arrived = true; @@ -66,9 +66,9 @@ bool PointMovementGenerator::Update(T &unit, const uint32 &diff) template void PointMovementGenerator:: Finalize(T &unit) { - if(unit.hasUnitState(UNIT_STAT_CHARGING)) + if (unit.hasUnitState(UNIT_STAT_CHARGING)) unit.clearUnitState(UNIT_STAT_CHARGING | UNIT_STAT_JUMPING); - if(arrived) // without this crash! + if (arrived) // without this crash! MovementInform(unit); } @@ -79,7 +79,7 @@ void PointMovementGenerator::MovementInform(T &unit) template <> void PointMovementGenerator::MovementInform(Creature &unit) { - if(id == EVENT_FALL_GROUND) + if (id == EVENT_FALL_GROUND) { unit.setDeathState(JUST_DIED); unit.SetFlying(true); -- cgit v1.2.3