mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-19 22:43:32 +00:00
FIXED: chat history clears on disconnect
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user