Project

General

Profile

Feature #2413 » 0090-Refactor-put_one_tile.patch

main - Marko Lindqvist, 10/24/2026 11:26 PM

View differences:

client/mapview_common.c
if (client_tile_get_known(ptile) != TILE_UNKNOWN
|| (editor_is_active() && editor_tile_is_selected(ptile))) {
struct unit *punit = get_drawable_unit(tileset, ptile, citymode);
struct animation *anim = nullptr;
if (animation_list_size(animations) > 0) {
anim = animation_list_get(animations, 0);
}
if (punit != nullptr && animation_list_size(animations) > 0) {
struct animation *anim = animation_list_get(animations, 0);
if (anim != nullptr && punit != nullptr
&& punit->id == anim->id) {
punit = nullptr;
if (punit->id == anim->id) {
punit = nullptr;
}
}
put_one_element(pcanvas, map_zoom, layer, ptile, nullptr, nullptr, punit,
(1-1/2)