From b627d6695654d8d9ac7c06600901b5405d1b5809 Mon Sep 17 00:00:00 2001 From: OmniTroid Date: Thu, 23 Mar 2017 00:13:56 +0100 Subject: [PATCH] fixed an issue where rainbowtext would not work when rejoining a server --- courtroom.cpp | 2 -- courtroom.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/courtroom.cpp b/courtroom.cpp index 985a4fb..1a2eb7c 100644 --- a/courtroom.cpp +++ b/courtroom.cpp @@ -1534,8 +1534,6 @@ void Courtroom::mod_called(QString p_ip) void Courtroom::on_ooc_return_pressed() { - static bool rainbow_appended = false; - QString ooc_message = ui_ooc_chat_message->text(); if (ooc_message == "" || ui_ooc_chat_name->text() == "") diff --git a/courtroom.h b/courtroom.h index 8beaeb6..54b0a37 100644 --- a/courtroom.h +++ b/courtroom.h @@ -128,6 +128,7 @@ private: int blip_pos = 0; int blip_rate = 1; int rainbow_counter = 0; + bool rainbow_appended = false; bool blank_blip = false; //delay before chat messages starts ticking