rtx: read _xvk_radius instead of radius in patch files to disambiguate, fix #259

This commit is contained in:
Ivan Avdeev 2021-12-08 11:25:39 -08:00
parent 4becafc02c
commit f9fc8fd2f2
2 changed files with 3 additions and 3 deletions

View File

@ -181,8 +181,8 @@ static void fillLightFromProps( vk_light_entity_t *le, const entity_props_t *pro
VectorSet(le->color, 300, 300, 300);
}
if (have_fields & Field_radius) {
le->radius = props->radius;
if (have_fields & Field__xvk_radius) {
le->radius = props->_xvk_radius;
}
if (have_fields & Field_style) {

View File

@ -18,7 +18,7 @@
X(13, int, _xvk_surface_id, Int) \
X(14, string, _xvk_texture, String) \
X(15, int, _xvk_ent_id, Int) \
X(16, float, radius, Float) \
X(16, float, _xvk_radius, Float) \
typedef enum {
Unknown = 0,