Feature #1304 ยป 0024-savegame-Remove-trailing-spaces.patch
server/savegame/savecompat.c | ||
---|---|---|
}
|
||
/* Renamed 'capital' to 'got_first_city'. */
|
||
if (secfile_lookup_bool(loading->file, &got_first_city,
|
||
if (secfile_lookup_bool(loading->file, &got_first_city,
|
||
"player%d.capital", plrno)) {
|
||
secfile_insert_bool(loading->file, got_first_city,
|
||
"player%d.got_first_city", plrno);
|
server/savegame/savegame3.c | ||
---|---|---|
fc_snprintf(token, sizeof(token), "%d",
|
||
ptile->infra_turns);
|
||
} else {
|
||
fc_snprintf(token, sizeof(token), "0");
|
||
fc_snprintf(token, sizeof(token), "0");
|
||
}
|
||
strcat(line, token);
|
||
if (x + 1 < MAP_NATIVE_WIDTH) {
|
||
... | ... | |
p = player_index(pplayer);
|
||
l = p / 32;
|
||
known[l * MAP_INDEX_SIZE + tile_index(ptile)]
|
||
|= (1u << (p % 32)); /* "p % 32" = "p - l * 32" */
|
||
|= (1u << (p % 32)); /* "p % 32" = "p - l * 32" */
|
||
}
|
||
} players_iterate_end;
|
||
} whole_map_iterate_end;
|