Copied some boilerplate code from InWorld to InCombat

This commit is contained in:
Kayne Ruse
2014-06-01 23:42:30 +10:00
parent 1cfb814ee4
commit 9d83abbd38
3 changed files with 113 additions and 7 deletions
+2 -1
View File
@@ -77,7 +77,7 @@ InWorld::InWorld(
RequestSynchronize();
//debug
// RequestRegion(0, 0);
//
}
InWorld::~InWorld() {
@@ -273,6 +273,7 @@ void InWorld::HandlePacket(SerialPacket packet) {
}
void InWorld::HandleDisconnect(SerialPacket packet) {
//TODO: I probably need a separate disconnection scene, for setting the client state back to normal
network.Unbind(Channels::SERVER);
clientIndex = -1;
accountIndex = -1;