Project

General

Profile

Feature #94 ยป 0017-Check-Unit_Vision_Radius_Sq-with-unit-granularity.patch

Marko Lindqvist, 12/30/2023 10:47 AM

View differences:

server/unittools.c
const struct unit_type *utype = unit_type_get(punit);
return (utype->vision_radius_sq
+ get_unittype_bonus(unit_owner(punit), ptile,
utype, NULL,
EFT_UNIT_VISION_RADIUS_SQ));
+ get_target_bonus_effects(NULL,
&(const struct req_context) {
.player = unit_owner(punit),
.tile = ptile,
.unittype = utype,
.unit = punit,
},
NULL, EFT_UNIT_VISION_RADIUS_SQ));
}
/**********************************************************************//**
    (1-1/1)