Fixed charselect showing the wrong amount of characters on its list, version bump.

This commit is contained in:
Cerapter 2018-10-23 10:06:04 +02:00
parent 3f41ed1341
commit bed38e0b7f
2 changed files with 3 additions and 1 deletions

View File

@ -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";

View File

@ -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)
{