diff options
| author | OmniTroid <davidskoland@gmail.com> | 2017-03-23 00:13:56 +0100 |
|---|---|---|
| committer | OmniTroid <davidskoland@gmail.com> | 2017-03-23 00:13:56 +0100 |
| commit | b627d6695654d8d9ac7c06600901b5405d1b5809 (patch) | |
| tree | 331c693c91bb2ca58a7b38ec17ec8985669c59c4 | |
| parent | 842b1a58e9e535bd7ca29fb7ec65f7f968d59a9a (diff) | |
fixed an issue where rainbowtext would not work when rejoining a server
| -rw-r--r-- | courtroom.cpp | 2 | ||||
| -rw-r--r-- | courtroom.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/courtroom.cpp b/courtroom.cpp index 985a4fb6..1a2eb7c0 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 8beaeb67..54b0a37d 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 |
