From: Michael Georgoulopoulos Date: Fri, 2 Sep 2016 22:51:30 +0000 (+0300) Subject: Fixed typos X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=commitdiff_plain;h=95e7797c2bb32a62fada629877a75b86bcf1aba9 Fixed typos --- diff --git a/src/mike.c b/src/mike.c index 4f92011..fda18fe 100644 --- a/src/mike.c +++ b/src/mike.c @@ -121,6 +121,7 @@ static void draw(void) *dst++ = src[i + scroll + d]; } src += backgroundW; + disp += backgroundW; } } @@ -156,7 +157,7 @@ static void processNormal() { scrollModTable[scanline] = (int) (backgroundW / scale + 0.5f); for (i = 0; i < backgroundW; i++) { x = (int)(i * scale + 0.5f); - if (x < background) { + if (x < backgroundW) { *dst = (unsigned short)normalmap[x] & 0xFF; if ((short)*dst > maxDisplacement) maxDisplacement = (short)(*dst); if ((short)*dst < minDisplacement) minDisplacement = (short)(*dst);