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
@@ -6899,7 +6899,7 @@ location transformDeltaWorldCoord(location here, float dx, float dz, float yaw)
float[] xz = transformDeltaWorldCoord(dx, dz, rotation);
if ( xz != null & xz.length == 2 )
{
location there = here;
location there = (location)here.clone();
there.x += xz[0];
there.z += xz[1];
@@ -7536,13 +7536,13 @@ obj_id createStructureSign(obj_id structure, float sYaw)
}
}
location spawn = there;
location spawn = (location)there.clone();
if ( sYaw != 0f )
{
location newspawn = transformDeltaWorldCoord(here, x, z, sYaw);
newspawn.y = there.y;
spawn = newspawn;
spawn = (location)newspawn.clone();
//LOG("structureSign","createStructureSign: spawn = " + spawn.toString());
}