From: sparky4 Date: Thu, 26 Jan 2017 19:40:13 +0000 (-0600) Subject: showing row and colum drawing i optimized it to only draw at the end of walk. this... X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=7d97589bcd28747993271f7908bfe436ec80a7d7;p=16.git showing row and colum drawing i optimized it to only draw at the end of walk. this explains why it is much slower than it was before panp is now sp and p is back to it self --- diff --git a/src/lib/16_tdef.h b/src/lib/16_tdef.h index 00703652..004b5d1c 100755 --- a/src/lib/16_tdef.h +++ b/src/lib/16_tdef.h @@ -272,7 +272,8 @@ typedef struct //end of doslib origi vars boolean __near rss; //render sprite switch sword __near sprifilei; //player file's i - nibble __near p,sp; //render page number //show page number(for showpage) + nibble __near p; //render page number + nibble __near sp; //show page number(for showpage) boolean __near r; //page flip, showpage, or render if true word pr[MAXPAGE][4]; //render sections of pages (this is supposed to be set up to draw sections of the screen if updated) diff --git a/src/lib/scroll16.h b/src/lib/scroll16.h index 44708d5d..fdfd58a2 100755 --- a/src/lib/scroll16.h +++ b/src/lib/scroll16.h @@ -70,6 +70,7 @@ typedef struct { word dyThresh; //Threshold for physical tile switch video_t *video; //pointer to game variables of the video nibble __near *p; // pointer to video's render page num + nibble __near *sp; // pointer to video's show page num int dx, dy; // draw row and col var //newer vars! int delta, d;