[scene] Make light style unsigned

Not that it really matters for only 64 styles, but it feels more
consistent.
This commit is contained in:
Bill Currie 2023-08-01 23:26:26 +09:00
parent 2d7f671da8
commit a50bc1c6ef
3 changed files with 4 additions and 3 deletions

View file

@ -65,7 +65,8 @@ typedef struct lightingdata_s {
lightingdata_t *Light_CreateLightingData (struct scene_s *scene);
void Light_DestroyLightingData (lightingdata_t *ldata);
void Light_ClearLights (lightingdata_t *ldata);
void Light_AddLight (lightingdata_t *ldata, const light_t *light, int style);
void Light_AddLight (lightingdata_t *ldata, const light_t *light,
uint32_t style);
void Light_EnableSun (lightingdata_t *ldata);
#endif//__QF_scene_light_h

View file

@ -85,7 +85,7 @@ test_light_leaf (const light_t *light, const mleaf_t *leaf)
}
void
Light_AddLight (lightingdata_t *ldata, const light_t *light, int style)
Light_AddLight (lightingdata_t *ldata, const light_t *light, uint32_t style)
{
scene_t *scene = ldata->scene;
model_t *model = scene->worldmodel;

View file

@ -163,7 +163,7 @@ static const component_t scene_components[scene_comp_count] = {
.name = "efrags",
},
[scene_lightstyle] = {
.size = sizeof (int),
.size = sizeof (uint32_t),
.name = "lightstyle",
},
[scene_lightleaf] = {