From bed38e0b7f42629c373e6a78b482541f1b3a4294 Mon Sep 17 00:00:00 2001 From: Cerapter Date: Tue, 23 Oct 2018 10:06:04 +0200 Subject: [PATCH] Fixed charselect showing the wrong amount of characters on its list, version bump. --- aoapplication.h | 2 +- charselect.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/aoapplication.h b/aoapplication.h index dc77014..aa34f13 100644 --- a/aoapplication.h +++ b/aoapplication.h @@ -274,7 +274,7 @@ private: const int CCCC_RELEASE = 1; const int CCCC_MAJOR_VERSION = 4; - const int CCCC_MINOR_VERSION = 0; + const int CCCC_MINOR_VERSION = 1; QString current_theme = "default"; diff --git a/charselect.cpp b/charselect.cpp index ac73ac2..54286b2 100644 --- a/charselect.cpp +++ b/charselect.cpp @@ -158,6 +158,8 @@ void Courtroom::put_button_in_place(int starting, int chars_on_this_page) char_columns = ((ui_char_buttons->width() - button_width) / (x_spacing + button_width)) + 1; char_rows = ((ui_char_buttons->height() - button_height) / (y_spacing + button_height)) + 1; + max_chars_on_page = char_columns * char_rows; + int startout = starting; for (int n = starting ; n < startout+chars_on_this_page ; ++n) {