diff --git a/d1x-rebirth/main/render.c b/d1x-rebirth/main/render.c index 068dea5d4..9117c89ae 100644 --- a/d1x-rebirth/main/render.c +++ b/d1x-rebirth/main/render.c @@ -148,7 +148,7 @@ fix flash_scale; #define FLASH_CYCLE_RATE f1_0 -fix flash_rate = FLASH_CYCLE_RATE; +static const fix Flash_rate = FLASH_CYCLE_RATE; //cycle the flashing light for when mine destroyed void flash_frame() @@ -165,7 +165,7 @@ void flash_frame() return; // flash_ang += fixmul(FLASH_CYCLE_RATE,FrameTime); - flash_ang += fixmul(flash_rate,FrameTime); + flash_ang += fixmul(Flash_rate,FrameTime); fix_fastsincos(flash_ang,&flash_scale,NULL); diff --git a/d2x-rebirth/main/render.c b/d2x-rebirth/main/render.c index e6cad9ab8..cd55d080c 100644 --- a/d2x-rebirth/main/render.c +++ b/d2x-rebirth/main/render.c @@ -153,7 +153,7 @@ fix flash_scale; #define FLASH_CYCLE_RATE f1_0 -fix Flash_rate = FLASH_CYCLE_RATE; +static const fix Flash_rate = FLASH_CYCLE_RATE; //cycle the flashing light for when mine destroyed void flash_frame()