aboutsummaryrefslogtreecommitdiff
path: root/source/tile.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/tile.h')
-rw-r--r--source/tile.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/tile.h b/source/tile.h
index 73f2860..ee52e19 100644
--- a/source/tile.h
+++ b/source/tile.h
@@ -258,7 +258,8 @@
pixel = PIXEL; \
for (l = LineCount; l != 0; l--, sp += GFX.PPL, Depth += GFX.PPL) \
{ \
- for (int z = Pixels - 1; z >= 0; z--) \
+ int z; \
+ for (z = Pixels - 1; z >= 0; z--) \
if (GFX.Z1 > Depth [z]) \
{ \
sp [z] = FUNCTION(sp + z, pixel); \
@@ -276,7 +277,8 @@
pixel = PIXEL; \
for (l = LineCount; l != 0; l--, sp += GFX.PPL, Depth += GFX.PPL) \
{ \
- for (int z = Pixels - 1; z >= 0; z--) \
+ int z; \
+ for (z = Pixels - 1; z >= 0; z--) \
if (GFX.Z1 > Depth [z]) \
{ \
sp [z] = FUNCTION(sp + z, pixel); \
@@ -301,7 +303,8 @@
pixel = PIXEL; \
for (l = LineCount; l != 0; l--, sp += GFX.PPL, Depth += GFX.PPL) \
{ \
- for (int z = Pixels - 2; z >= 0; z -= 2) \
+ int z; \
+ for (z = Pixels - 2; z >= 0; z -= 2) \
if (GFX.Z1 > Depth [z]) \
{ \
sp [z >> 1] = FUNCTION(sp + z, pixel); \
@@ -319,7 +322,8 @@
pixel = PIXEL; \
for (l = LineCount; l != 0; l--, sp += GFX.PPL, Depth += GFX.PPL) \
{ \
- for (int z = Pixels - 2; z >= 0; z -= 2) \
+ int z; \
+ for (z = Pixels - 2; z >= 0; z -= 2) \
if (GFX.Z1 > Depth [z]) \
{ \
sp [z >> 1] = FUNCTION(sp + z, pixel); \