aboutsummaryrefslogtreecommitdiff
path: root/charselect.cpp
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2018-12-12 13:05:27 -0600
committerGitHub <noreply@github.com>2018-12-12 13:05:27 -0600
commitd09269122408ee83c4fa20dfb90ed5aedd9fe85a (patch)
tree57bb4ac47202158ac5062488151d3c83305ce424 /charselect.cpp
parent9270069e726d1f260e3c08ee5722f6d07067b770 (diff)
parent171196885d88360c8c06def67ae398c8187dfd89 (diff)
Merge pull request #38 from Cerapter/mega-merge-fixes
CC-original related feature fixes.
Diffstat (limited to 'charselect.cpp')
-rw-r--r--charselect.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/charselect.cpp b/charselect.cpp
index 01b6ae73..8e1b9122 100644
--- a/charselect.cpp
+++ b/charselect.cpp
@@ -168,8 +168,7 @@ void Courtroom::put_button_in_place(int starting, int chars_on_this_page)
ui_char_button_list_filtered.at(n)->move(x_pos, y_pos);
ui_char_button_list_filtered.at(n)->show();
-
- ui_char_button_list_filtered.at(n)->set_taken();
+ ui_char_button_list_filtered.at(n)->apply_taken_image();
++x_mod_count;
@@ -240,6 +239,12 @@ void Courtroom::filter_character_list()
if (!char_list.at(i).name.contains(ui_char_search->text(), Qt::CaseInsensitive))
continue;
+ // We only really need to update the fact that a character is taken
+ // for the buttons that actually appear.
+ // You'd also update the passwordedness and etc. here later.
+ current_char->reset();
+ current_char->set_taken(char_list.at(i).taken);
+
ui_char_button_list_filtered.append(current_char);
}