Code consistency checks by _Tyr_; Fixed set but unused variables
This commit is contained in:
parent
22316fa5d6
commit
c2b3c64314
|
@ -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
|
||||
--------
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue