From b9610f27dd2c55f63f9a96f1259a8dce33b71d88 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 15 Jun 2009 12:02:55 -0500 Subject: *Check movementflag to interrupt casting instead of checking position. *Also some other fixes about movement flags. --HG-- branch : trunk --- src/game/PointMovementGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/PointMovementGenerator.cpp') diff --git a/src/game/PointMovementGenerator.cpp b/src/game/PointMovementGenerator.cpp index c972683ce0b..ed057854aaa 100644 --- a/src/game/PointMovementGenerator.cpp +++ b/src/game/PointMovementGenerator.cpp @@ -35,7 +35,7 @@ void PointMovementGenerator::Initialize(T &unit) i_destinationHolder.SetDestination(traveller,i_x,i_y,i_z, !unit.hasUnitState(UNIT_STAT_JUMPING)); if (unit.GetTypeId() == TYPEID_UNIT && ((Creature*)&unit)->canFly()) - unit.AddUnitMovementFlag(MOVEMENTFLAG_FLYING2); + unit.AddUnitMovementFlag(MOVEMENTFLAG_FLYING); } template -- cgit v1.2.3