From a6ad1994de805169b10fe9cae5ee797c1b7f4849 Mon Sep 17 00:00:00 2001 From: Bigjango13 Date: Mon, 18 Mar 2024 19:58:38 -0400 Subject: [PATCH] Remove left over check --- mods/src/chat/ui.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/mods/src/chat/ui.cpp b/mods/src/chat/ui.cpp index 50cd2ef9e9..692728f1ad 100644 --- a/mods/src/chat/ui.cpp +++ b/mods/src/chat/ui.cpp @@ -100,23 +100,17 @@ CUSTOM_VTABLE(chat_screen, Screen) { // Up local_history.at(self->history_pos) = self->chat->getText(); // Change - int old_pos = self->history_pos; self->history_pos -= 1; if (self->history_pos < 0) self->history_pos = local_history.size() - 1; - if (old_pos != self->history_pos) { - self->chat->setText(local_history.at(self->history_pos)); - } + self->chat->setText(local_history.at(self->history_pos)); return; } else if (key == 0x28) { // Down local_history.at(self->history_pos) = self->chat->getText(); // Change - int old_pos = self->history_pos; self->history_pos += 1; if (self->history_pos > int(local_history.size()) - 1) self->history_pos = 0; - if (old_pos != self->history_pos) { - self->chat->setText(local_history.at(self->history_pos)); - } + self->chat->setText(local_history.at(self->history_pos)); return; } }