Logic and comment cleanup.

This commit is contained in:
2023-04-29 14:36:39 -04:00
parent 129aff909c
commit cace195e18
+5 -3
View File
@@ -825,6 +825,8 @@ public class Mob extends AbstractIntelligenceAgent {
if (this.building != null) {
if (this.contract == null) {
// Mobiles inside buildings are offset from it not the zone
this.bindLoc = new Vector3fImmutable(this.statLat, this.statAlt, this.statLon);
@@ -832,7 +834,7 @@ public class Mob extends AbstractIntelligenceAgent {
this.loc = new Vector3fImmutable(bindLoc);
this.endLoc = new Vector3fImmutable(bindLoc);
if (this.contract != null) {
} else {
// Get next available slot for this Mobile and then
// add it to the building's hireling list
@@ -844,8 +846,8 @@ public class Mob extends AbstractIntelligenceAgent {
building.getHirelings().put(this, slot);
// Override bind and location for this Mobile derived
// from BuildingManager slot location data.
// Override bind and location for this contracted Mobile
// derived from BuildingManager slot location data.
slotLocation = BuildingManager.getSlotLocation(building, slot);