forked from MagicBane/Server
Handling of mobs not in buildings.
This commit is contained in:
@@ -406,7 +406,6 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed {
|
|||||||
|
|
||||||
Mob mobile = new Mob();
|
Mob mobile = new Mob();
|
||||||
mobile.dbID = MBServerStatics.NO_DB_ROW_ASSIGNED_YET;
|
mobile.dbID = MBServerStatics.NO_DB_ROW_ASSIGNED_YET;
|
||||||
//mobile.agentType = AIAgentType.MOBILE; this method is only called to make guard captains and wall archers
|
|
||||||
mobile.agentType = mobType;
|
mobile.agentType = mobType;
|
||||||
mobile.behaviourType = MobBehaviourType.None;
|
mobile.behaviourType = MobBehaviourType.None;
|
||||||
mobile.loadID = loadID;
|
mobile.loadID = loadID;
|
||||||
@@ -427,7 +426,8 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed {
|
|||||||
if (mobile.buildingUUID != 0)
|
if (mobile.buildingUUID != 0)
|
||||||
mobile.bindLoc = Vector3fImmutable.ZERO;
|
mobile.bindLoc = Vector3fImmutable.ZERO;
|
||||||
else
|
else
|
||||||
mobile.bindLoc = spawn;
|
mobile.bindLoc = ZoneManager.worldToLocal(spawn, parent);
|
||||||
|
;
|
||||||
|
|
||||||
mobile.firstName = pirateName;
|
mobile.firstName = pirateName;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user