forked from MagicBane/Server
interest management
This commit is contained in:
@@ -46,7 +46,6 @@ public enum InterestManager implements Runnable {
|
||||
LoadCharacterMsg lcm;
|
||||
NPC npc;
|
||||
Corpse corpse;
|
||||
PlayerCharacter pc;
|
||||
HashSet<AbstractWorldObject> toUpdate;
|
||||
|
||||
switch (awo.getObjectType()) {
|
||||
@@ -65,11 +64,6 @@ public enum InterestManager implements Runnable {
|
||||
lcm = new LoadCharacterMsg(npc, false);
|
||||
msg = lcm;
|
||||
break;
|
||||
case PlayerCharacter:
|
||||
pc = (PlayerCharacter) awo;
|
||||
lcm = new LoadCharacterMsg(pc, false);
|
||||
msg = lcm;
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
@@ -112,7 +106,7 @@ public enum InterestManager implements Runnable {
|
||||
origin.sendMsg(moveMsg);
|
||||
}
|
||||
|
||||
public static void reloadCharacter(AbstractCharacter absChar, boolean fromBox) {
|
||||
public static void reloadCharacter(AbstractCharacter absChar) {
|
||||
|
||||
UnloadObjectsMsg uom = new UnloadObjectsMsg();
|
||||
uom.addObject(absChar);
|
||||
@@ -138,9 +132,8 @@ public enum InterestManager implements Runnable {
|
||||
if (cc == null)
|
||||
continue;
|
||||
|
||||
if (pcc.getObjectUUID() == absChar.getObjectUUID()) {
|
||||
if (pcc.getObjectUUID() == absChar.getObjectUUID())
|
||||
continue;
|
||||
}
|
||||
|
||||
else {
|
||||
if (pc != null)
|
||||
@@ -538,7 +531,6 @@ public enum InterestManager implements Runnable {
|
||||
// Update loaded upbjects lists
|
||||
|
||||
player.isBoxed = PlayerCharacter.checkIfBoxed(player);
|
||||
//player.updateBoxStatus(PlayerCharacter.checkIfBoxed(player));
|
||||
player.setDirtyLoad(true);
|
||||
updateStaticList(player, origin);
|
||||
updateMobileList(player, origin);
|
||||
|
||||
Reference in New Issue
Block a user