*Update flame levi script. Allow player to shoot down pyrite container and refill the demolishers.

*Other script-related fixes.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-28 11:26:20 -05:00
parent 9d28323a55
commit ab5f515f21
19 changed files with 241 additions and 164 deletions
+6 -6
View File
@@ -98,10 +98,10 @@ inline float Traveller<Creature>::GetMoveDestinationTo(float x, float y, float z
float dy = y - GetPositionY();
float dz = z - GetPositionZ();
if(i_traveller.HasUnitMovementFlag(MOVEMENTFLAG_FLYING))
//if(i_traveller.HasUnitMovementFlag(MOVEMENTFLAG_FLYING))
return sqrt((dx*dx) + (dy*dy) + (dz*dz));
else //Walking on the ground
return sqrt((dx*dx) + (dy*dy));
//else //Walking on the ground
// return sqrt((dx*dx) + (dy*dy));
}
@@ -131,10 +131,10 @@ inline float Traveller<Player>::GetMoveDestinationTo(float x, float y, float z)
float dy = y - GetPositionY();
float dz = z - GetPositionZ();
if (i_traveller.isInFlight())
//if (i_traveller.isInFlight())
return sqrt((dx*dx) + (dy*dy) + (dz*dz));
else //Walking on the ground
return sqrt((dx*dx) + (dy*dy));
//else //Walking on the ground
// return sqrt((dx*dx) + (dy*dy));
}
template<>