From 27f825f41b93cfada1378e23bea9b54cf8af0fc6 Mon Sep 17 00:00:00 2001 From: toasterbabe Date: Fri, 3 Jun 2016 02:23:27 +0100 Subject: [PATCH] Dedicated laser blocks flash less awfully now. --- src/p_spec.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/p_spec.c b/src/p_spec.c index 6d874186f..d82f2b2a4 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -5271,7 +5271,7 @@ static inline void P_AddCameraScanner(sector_t *sourcesec, sector_t *actionsecto elevator->distance = FixedInt(AngleFixed(angle)); } -static const ffloortype_e laserflags = FF_EXISTS|FF_RENDERALL|FF_NOSHADE|FF_EXTRA|FF_CUTEXTRA; +static const ffloortype_e laserflags = FF_EXISTS|FF_RENDERALL|FF_NOSHADE|FF_EXTRA|FF_CUTEXTRA|FF_TRANSLUCENT; /** Flashes a laser block. * @@ -5292,9 +5292,11 @@ void T_LaserFlash(laserthink_t *flash) return; if (leveltime & 1) - ffloor->flags |= FF_RENDERALL; + //ffloor->flags |= FF_RENDERALL; + ffloor->alpha = 0xC0; else - ffloor->flags &= ~FF_RENDERALL; + //ffloor->flags &= ~FF_RENDERALL; + ffloor->alpha = 0x60; sourcesec = ffloor->master->frontsector; // Less to type!