mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 01:46:23 +00:00
Fixed some sections showing
This commit is contained in:
parent
7135927d8a
commit
4cbd36572d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user