Added the restart scene

This commit is contained in:
Kayne Ruse
2014-06-02 00:45:57 +10:00
parent 9d83abbd38
commit 4acd350219
6 changed files with 243 additions and 8 deletions
+1 -6
View File
@@ -273,12 +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;
characterIndex = -1;
SetNextScene(SceneList::MAINMENU);
SetNextScene(SceneList::RESTART);
}
void InWorld::HandleRegionContent(SerialPacket packet) {