Handler created for UpdateStateMsg
This commit is contained in:
@@ -73,22 +73,6 @@ public class ClientMessagePump implements NetMsgHandler {
|
||||
pc.getTimestamps().put("WHO", System.currentTimeMillis() + 3000);
|
||||
}
|
||||
|
||||
// *** Refactor need to figure this out.
|
||||
// Commented out for some reson or another.
|
||||
|
||||
private static void runWalkSitStand(UpdateStateMsg msg, ClientConnection origin) throws MsgSendException {
|
||||
PlayerCharacter pc = SessionManager.getPlayerCharacter(origin);
|
||||
if (pc == null)
|
||||
return;
|
||||
|
||||
pc.update();
|
||||
if (msg.getSpeed() == 2)
|
||||
pc.setWalkMode(false);
|
||||
else
|
||||
pc.setWalkMode(true);
|
||||
DispatchMessage.dispatchMsgToInterestArea(pc, msg, DispatchChannel.PRIMARY, MBServerStatics.CHARACTER_LOAD_RANGE, true, false);
|
||||
}
|
||||
|
||||
private static void toggleLfgRecruiting(ToggleLfgRecruitingMsg msg, ClientConnection origin) throws MsgSendException {
|
||||
PlayerCharacter pc = SessionManager.getPlayerCharacter(origin);
|
||||
if (pc == null)
|
||||
@@ -839,10 +823,6 @@ public class ClientMessagePump implements NetMsgHandler {
|
||||
case LEADERCHANNELMESSAGE:
|
||||
ChatManager.handleChatMsg(s, (AbstractChatMsg) msg);
|
||||
break;
|
||||
case UPDATESTATE:
|
||||
UpdateStateMsg rwss = (UpdateStateMsg) msg;
|
||||
runWalkSitStand(rwss, origin);
|
||||
break;
|
||||
case ACTIVATECHARTER:
|
||||
UseCharterMsg ucm = (UseCharterMsg) msg;
|
||||
ucm.setUnknown02(1);
|
||||
|
||||
Reference in New Issue
Block a user