Correctly handle light computation of objects with render_type RT_LASER

This commit is contained in:
zicodxx 2011-05-05 20:45:22 +02:00
parent e6091eae9d
commit 0b7548b6c8
2 changed files with 6 additions and 0 deletions

View file

@ -5,6 +5,7 @@ D1X-Rebirth Changelog
main/gauges.c, main/multi.h, main/net_udp.c, main/net_udp.h, main/playsave.c: Host can now decide (again) if players are allowed to display enemy names on HUD
main/gauges.c, main/piggy.c, main/piggy.h: When using PC Shareware pigfile do not show key icons in CM_FULL_SCREEN since pigfile does not have these icons
d1x-rebirth.desktop, debian/changelog, debian/control, debian/copyright, debian/rules: Update for Debian packaging stuff
main/lighting.c: Correctly handle light computation of objects with render_type RT_LASER
20110504
--------

View file

@ -400,6 +400,11 @@ g3s_lrgb compute_light_emission(int objnum)
}
break;
}
case RT_LASER:
{
t_idx_s = t_idx_e = Weapon_info[obj->id].bitmap.index;
break;
}
case RT_WEAPON_VCLIP:
{
t_idx_s = Vclip[Weapon_info[obj->id].weapon_vclip].frames[0].index;