aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2019-10-03 17:01:41 +0300
committerCrystalwarrior <varsash@gmail.com>2019-10-03 17:01:41 +0300
commitbdef10ace5e99ebd0ae09d0821cc2557b07defdd (patch)
tree7ebd8caa6a80c8da0990e847c656c379bbf2e027 /src/courtroom.cpp
parent829604e8089736945e8121cd134c3c3fcbf28291 (diff)
Remove /rainbow as clientside slash commands are cursed. I shall purge all clientside slash command memery soon...
Fix /save_case iterating from last to first instead of first to last Implement private evidence saving/loading to and from an .ini file
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 794242f3..e715c795 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -2993,14 +2993,6 @@ void Courtroom::on_ooc_return_pressed()
toggle_judge_buttons(false);
}
}
- else if (ooc_message.startsWith("/rainbow") && ao_app->yellow_text_enabled && !rainbow_appended)
- {
- //ui_text_color->addItem("Rainbow");
- ui_ooc_chat_message->clear();
- //rainbow_appended = true;
- append_server_chatmessage("CLIENT", tr("This does nothing, but there you go."), "1");
- return;
- }
else if (ooc_message.startsWith("/settings"))
{
ui_ooc_chat_message->clear();
@@ -3221,7 +3213,7 @@ void Courtroom::on_ooc_return_pressed()
casefile.setValue("doc", "");
casefile.setValue("status",command[2]);
casefile.sync();
- for(int i = local_evidence_list.size() - 1; i >= 0; i--)
+ for(int i = 0; i < local_evidence_list.size(); i++)
{
QString clean_evidence_dsc = local_evidence_list[i].description.replace(QRegularExpression("<owner = ...>..."), "");
clean_evidence_dsc = clean_evidence_dsc.replace(clean_evidence_dsc.lastIndexOf(">"), 1, "");