From 3067419dab8b39a233d0374fdc04ced2ab9610b7 Mon Sep 17 00:00:00 2001 From: Kp Date: Mon, 29 Sep 2014 01:09:38 +0000 Subject: [PATCH] Switch texture map y->boty y is always equal to boty, but y will be limited to loop scope --- common/texmap/ntmap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/texmap/ntmap.cpp b/common/texmap/ntmap.cpp index c28f277c4..568d2a269 100644 --- a/common/texmap/ntmap.cpp +++ b/common/texmap/ntmap.cpp @@ -557,7 +557,7 @@ static void ntexture_map_lighted(grs_bitmap *srcb, g3ds_tmap *t) // We can get lleft or lright out of bounds here because we compute dl_dy using fixed point values, // but we plot an integer number of scanlines, therefore doing an integer number of additions of the delta. - ntmap_scanline_lighted(srcb,y,xleft,xright,uleft,uright,vleft,vright,zleft,zright,lleft,lright); + ntmap_scanline_lighted(srcb,boty,xleft,xright,uleft,uright,vleft,vright,zleft,zright,lleft,lright); } @@ -804,7 +804,7 @@ void ntexture_map_lighted_linear(grs_bitmap *srcb, g3ds_tmap *t) // We can get lleft or lright out of bounds here because we compute dl_dy using fixed point values, // but we plot an integer number of scanlines, therefore doing an integer number of additions of the delta. - ntmap_scanline_lighted_linear(srcb,y,xleft,xright,uleft,uright,vleft,vright,lleft,lright); + ntmap_scanline_lighted_linear(srcb,boty,xleft,xright,uleft,uright,vleft,vright,lleft,lright); } // fix DivNum = F1_0*12;