mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 21:20:33 +00:00
[scene] Make light style unsigned
Not that it really matters for only 64 styles, but it feels more consistent.
This commit is contained in:
parent
2d7f671da8
commit
a50bc1c6ef
3 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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] = {
|
||||
|
|
Loading…
Reference in a new issue