Fixed many more location bugs.

This commit is contained in:
PrisonCamp
2015-02-18 23:27:34 -08:00
parent ea4787a8a2
commit af96886b93
25 changed files with 69 additions and 69 deletions
@@ -753,7 +753,7 @@ void startDelayedAttack(obj_id attacker, obj_id target, obj_id objWeapon, string
}
else if(eggPosition == 3) // LOCATION
{
where = actionData.targetLoc;
where = (location)actionData.targetLoc.clone();
}
@@ -1184,7 +1184,7 @@ boolean doCombatPreCheck(combat_data actionData, attacker_data attackerData, wea
}
else
{
location where = actionData.targetLoc;
location where = (location)actionData.targetLoc.clone();
where.y += 0.5f; // gotta raise the loc, or canSee will fail as it will collide with the terrain at that location. woohoo.
cansee = canSee(attackerData.id, where);
//sendSystemMessageTestingOnly(obj_id.getObjId(10014554), "CanSee 1");
@@ -1327,7 +1327,7 @@ obj_id[] getCombatDefenders(obj_id self, obj_id target, weapon_data weaponData,
{
if(weaponData.weaponType == WEAPON_TYPE_DIRECTIONAL)
{
location where = actionData.targetLoc;
location where = (location)actionData.targetLoc.clone();
// Width is an angle to the sides of your target; IE: 20 degree width is a total of 40 degrees.
defenders = pvpGetTargetsInCone(self, self, where, length, width);