Project

General

Profile

Bug #239 » 0040-mapgenerator4-Fix-CodeQL-bad-oddness-check-warning.patch

main - Marko Lindqvist, 02/08/2024 04:39 AM

View differences:

server/generator/mapgen.c
initworld(pstate);
i = player_count() / 2;
if ((player_count() % 2) == 1) {
make_island(bigweight * 3 * pstate->totalmass / totalweight, 3,
if ((player_count() & 1) == 1) {
make_island(bigweight * 3 * pstate->totalmass / totalweight, 3,
pstate, DMSIS);
} else {
i++;
(1-1/2)