forked from mirrors/kolyah35-minecraft-pe-0.6.1
FIXED: chat history clears on disconnect
This commit is contained in:
parent
997c3f2ebe
commit
2bc3be3153
3 changed files with 7 additions and 0 deletions
|
|
@ -335,6 +335,7 @@ void Minecraft::leaveGame(bool renameLevel /*=false*/)
|
|||
|
||||
_running = false;
|
||||
#ifndef STANDALONE_SERVER
|
||||
gui.clearMessages();
|
||||
if (renameLevel) {
|
||||
setScreen(new RenameMPLevelScreen(LevelStorageSource::TempLevelId));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -334,6 +334,11 @@ void Gui::addMessage(const std::string& _string) {
|
|||
}
|
||||
}
|
||||
|
||||
void Gui::clearMessages() {
|
||||
guiMessages.clear();
|
||||
chatScrollOffset = 0;
|
||||
}
|
||||
|
||||
void Gui::setNowPlaying(const std::string& string) {
|
||||
overlayMessageString = "Now playing: " + string;
|
||||
overlayMessageTime = 20 * 3;
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ public:
|
|||
void renderProgressIndicator( const bool isTouchInterface, const int screenWidth, const int screenHeight, float a );
|
||||
|
||||
void addMessage(const std::string& string);
|
||||
void clearMessages();
|
||||
void postError(int errCode);
|
||||
|
||||
void onGraphicsReset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue