Feature #94 ยป 0017-Check-Unit_Vision_Radius_Sq-with-unit-granularity.patch
| 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));
|
||
|
}
|
||
|
/**********************************************************************//**
|
||