Code consistency checks by _Tyr_; Fixed set but unused variables

This commit is contained in:
zicodxx 2011-09-26 19:03:12 +02:00
parent 22316fa5d6
commit c2b3c64314
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@ D1X-Rebirth Changelog
20110926
--------
main/fireball.c: Code consistency checks by _Tyr_; Fixed set but unused variables
main/fireball.c, main/lighting.c: Code consistency checks by _Tyr_; Fixed set but unused variables
20110925
--------

View file

@ -120,7 +120,7 @@ void apply_light(g3s_lrgb obj_light_emission, int obj_seg, vms_vector *obj_pos,
if (dist < MIN_LIGHT_DIST)
dist = MIN_LIGHT_DIST;
if (headlight_shift)
if (headlight_shift && objnum != -1)
{
fix dot;
vms_vector vec_to_point;