From 7ba76200593f39c398680158fc1f2f9a0a310258 Mon Sep 17 00:00:00 2001 From: Jaime Passos Date: Fri, 15 Nov 2019 18:58:45 -0300 Subject: [PATCH] Shadowed declaration and unused parameters --- src/hardware/hw_main.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 4cb407621..45d1cdf27 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -7077,14 +7077,18 @@ void HWR_DoTintedWipe(UINT8 wipenum, UINT8 scrnnum) HWR_DoWipe(wipenum, scrnnum); } -void HWR_DoLevelWipe(UINT8 wipenum, UINT8 scrnnum, UINT8 wipecolorfill) +void HWR_DoLevelWipe(UINT8 wipenum, UINT8 scrnnum, UINT8 colfill) { -#ifdef LEVELWIPES +#ifndef LEVELWIPES + (void)wipenum; + (void)scrnnum; + (void)colfill; +#else if (!HWR_WipeCheck(wipenum, scrnnum)) return; HWR_EndScreenWipe(); - V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, wipecolorfill); + V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, colfill); HWR_StartScreenWipe(); HWR_GetFadeMask(wipelumpnum);