From 0b7548b6c81e66eb2db381023e55ff1de6f73467 Mon Sep 17 00:00:00 2001 From: zicodxx Date: Thu, 5 May 2011 20:45:22 +0200 Subject: [PATCH] Correctly handle light computation of objects with render_type RT_LASER --- CHANGELOG.txt | 1 + main/lighting.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 4e8bc8448..11765ce51 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 -------- diff --git a/main/lighting.c b/main/lighting.c index 60de75ecf..52fa78e54 100644 --- a/main/lighting.c +++ b/main/lighting.c @@ -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;