Pass const object to compute_object_light

This commit is contained in:
Kp 2017-03-11 19:56:24 +00:00
parent 84faf8aa73
commit dfbcc02346
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ extern object *old_viewer;
// compute the lighting for an object. Takes a pointer to the object,
// and possibly a rotated 3d point. If the point isn't specified, the
// object's center point is rotated.
g3s_lrgb compute_object_light(vobjptridx_t obj,const vms_vector *rotated_pnt);
g3s_lrgb compute_object_light(vcobjptridx_t obj, const vms_vector *rotated_pnt);
// turn headlight boost on & off
void toggle_headlight_active(void);

View file

@ -614,7 +614,7 @@ void start_lighting_frame(const vobjptr_t viewer)
//compute the lighting for an object. Takes a pointer to the object,
//and possibly a rotated 3d point. If the point isn't specified, the
//object's center point is rotated.
g3s_lrgb compute_object_light(const vobjptridx_t obj,const vms_vector *rotated_pnt)
g3s_lrgb compute_object_light(const vcobjptridx_t obj, const vms_vector *rotated_pnt)
{
g3s_lrgb light, seg_dl;
fix mlight;