forked from mirrors/kolyah35-minecraft-pe-0.6.1
FIX: multiplayer leave crash and compilation
This commit is contained in:
parent
3811964689
commit
50d1de49e0
2 changed files with 9 additions and 8 deletions
|
|
@ -120,13 +120,14 @@ void ClientSideNetworkHandler::onDisconnect(const RakNet::RakNetGUID& guid)
|
|||
level->removeEntity(p);
|
||||
}
|
||||
}
|
||||
}
|
||||
minecraft->setLevel(NULL);
|
||||
#ifndef STANDALONE_SERVER
|
||||
minecraft->gui.addMessage("Disconnected from server");
|
||||
// TODO: screen with error
|
||||
minecraft->screenChooser.setScreen(SCREEN_STARTMENU);
|
||||
#endif
|
||||
}
|
||||
minecraft->leaveGame();
|
||||
// minecraft->setLevel(NULL);
|
||||
// #ifndef STANDALONE_SERVER
|
||||
// minecraft->gui.addMessage("Disconnected from server");
|
||||
// // TODO: screen with error
|
||||
// minecraft->screenChooser.setScreen(SCREEN_STARTMENU);
|
||||
// #endif
|
||||
}
|
||||
|
||||
void ClientSideNetworkHandler::handle(const RakNet::RakNetGUID& source, LoginStatusPacket* packet) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue