From 1ccda16e8e07fefd8cb6c10267f1e7ba128ed522 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 18 Dec 2019 09:31:46 +0000 Subject: [PATCH] Avoid shadowed variable in dorotatesprite Backported from PCExhumed. git-svn-id: https://svn.eduke32.com/eduke32@8446 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index 81cdea343..519504fb3 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -7140,7 +7140,7 @@ static void dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t if (d4 >= u4) vlineasm4(d4-u4+1, (char *)(ylookup[u4]+p)); - i = p+ylookup[d4+1]; + intptr_t i = p+ylookup[d4+1]; if (y2ve[0] > d4) prevlineasm1(vince[0],palookupoffse[0],y2ve[0]-d4-1,vplce[0],bufplce[0],i+0); if (y2ve[1] > d4) prevlineasm1(vince[1],palookupoffse[1],y2ve[1]-d4-1,vplce[1],bufplce[1],i+1); if (y2ve[2] > d4) prevlineasm1(vince[2],palookupoffse[2],y2ve[2]-d4-1,vplce[2],bufplce[2],i+2); @@ -7164,7 +7164,7 @@ static void dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16_t if (d4 >= u4) mvlineasm4(d4-u4+1, (char *)(ylookup[u4]+p)); - i = p+ylookup[d4+1]; + intptr_t i = p+ylookup[d4+1]; if (y2ve[0] > d4) mvlineasm1(vince[0],palookupoffse[0],y2ve[0]-d4-1,vplce[0],bufplce[0],i+0); if (y2ve[1] > d4) mvlineasm1(vince[1],palookupoffse[1],y2ve[1]-d4-1,vplce[1],bufplce[1],i+1); if (y2ve[2] > d4) mvlineasm1(vince[2],palookupoffse[2],y2ve[2]-d4-1,vplce[2],bufplce[2],i+2);