From: sparky4 <sparky4@cock.li>
Date: Fri, 23 Oct 2015 18:41:11 +0000 (-0500)
Subject: hmmm
X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=34d0a1776e7bd46db8ac385babb9fdf0a2195f56;p=16.git

hmmm
---

diff --git a/16.exe b/16.exe
index 71b7fff4..a9f53ec4 100755
Binary files a/16.exe and b/16.exe differ
diff --git a/exmmtest.exe b/exmmtest.exe
index 29d5fa9e..7ad8da46 100755
Binary files a/exmmtest.exe and b/exmmtest.exe differ
diff --git a/planrpcx.exe b/planrpcx.exe
index 8cc2e95d..96810a75 100755
Binary files a/planrpcx.exe and b/planrpcx.exe differ
diff --git a/scroll.exe b/scroll.exe
index 1a70a039..e819a693 100755
Binary files a/scroll.exe and b/scroll.exe differ
diff --git a/src/planrpcx.c b/src/planrpcx.c
index b8c85784..fe3a085a 100755
--- a/src/planrpcx.c
+++ b/src/planrpcx.c
@@ -29,23 +29,24 @@
 
 global_game_variables_t gvar;
 
-
 void
 DrawPBuf(page_t *page, int x, int y, planar_buf_t *p, byte sprite)
 {
 	word plane;
 	word px, py;
 	word offset;
+	word i;
 
 	// TODO Make this fast.  It's SLOOOOOOW
 	for(plane=0; plane < 4; plane++) {
+		i=0;
 		modexSelectPlane(PLANE(plane+x));
 			for(px = plane; px < p->width; px+=4) {
 				offset=px;
 				for(py=0; py<p->height/2; py++) {
 					//SELECT_ALL_PLANES();
 					if(!sprite || p->plane[offset])
-						page->data = (p->plane[offset]);
+						page->data = &(p->plane[offset][i++]);
 				offset+=p->width;
 				offset++;
 		}
diff --git a/test.exe b/test.exe
index f3a146ae..d53989ec 100755
Binary files a/test.exe and b/test.exe differ