Randomize random spawn headings.
This commit is contained in:
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -374,6 +374,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -407,6 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -374,6 +374,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -407,6 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -374,6 +374,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -407,6 +408,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -388,6 +388,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocy = loc.getY();
|
newlocy = loc.getY();
|
||||||
newlocz = loc.getZ();
|
newlocz = loc.getZ();
|
||||||
setLocation(loc);
|
setLocation(loc);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
else if ((getX() == 0) && (getY() == 0))
|
else if ((getX() == 0) && (getY() == 0))
|
||||||
{
|
{
|
||||||
@@ -416,6 +417,7 @@ public class Spawn extends Location implements IIdentifiable, INamable
|
|||||||
newlocx = randX;
|
newlocx = randX;
|
||||||
newlocy = randY;
|
newlocy = randY;
|
||||||
setXYZ(newlocx, newlocy, newlocz);
|
setXYZ(newlocx, newlocy, newlocz);
|
||||||
|
setHeading(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user