Fixed some sections showing

This commit is contained in:
Charles Dang 2020-10-06 13:57:38 +11:00
parent 7135927d8a
commit 4cbd36572d

View File

@ -54,11 +54,11 @@ outro::outro(const game_classification& info)
continue;
}
// Split the names into chunks of 5
static const unsigned chunk_size = 5;
// Split the names into chunks of 5. Use float for proper ceil function!
static const float chunk_size = 5.0;
const unsigned num_names = about.names.size();
const unsigned num_chunks = std::max<unsigned>(1, std::ceil(num_names / chunk_size));
const unsigned num_chunks = std::ceil(num_names / chunk_size);
for(std::size_t i = 0; i < num_chunks; ++i) {
std::stringstream ss;