Fix declaration location of more vars for proper C compliance.

This commit is contained in:
n-a-c-h
2005-02-25 01:02:01 +00:00
parent 700c427989
commit 206b14709e

View File

@@ -1929,15 +1929,15 @@ void DSP4_OP10()
for (;;)
{
int16 distance;
int16 color;
int16 color, red, green, blue;
distance = DSP4_READ_WORD();
color = DSP4_READ_WORD();
// U1+B5+G5+R5
int16 red = color & 0x1f;
int16 green = (color >> 5) & 0x1f;
int16 blue = (color >> 10) & 0x1f;
red = color & 0x1f;
green = (color >> 5) & 0x1f;
blue = (color >> 10) & 0x1f;
// dynamic lighting
red = (red * distance >> 15) & 0x1f;