From 46e61f75ca6161fc5c84ebf05d549f427f127850 Mon Sep 17 00:00:00 2001
From: sparky4 <sparky4@cock.li>
Date: Wed, 26 Nov 2014 19:26:37 -0600
Subject: [PATCH] 	modified:   Project 16.bfproject 	modified:  
 scroll.c 	modified:   scroll.exe

---
 Project 16.bfproject |   7 +++----
 scroll.c             |   9 ++-------
 scroll.exe           | Bin 47800 -> 47800 bytes
 3 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/Project 16.bfproject b/Project 16.bfproject
index 2ab854ce..8425d2fc 100644
--- a/Project 16.bfproject	
+++ b/Project 16.bfproject	
@@ -1,16 +1,15 @@
 c2e.convert_special: 0
 e2c.convert_num: 0
 openfiles: /dos/z/16/doc/project.txt:60:0:0:
-openfiles: /dos/z/16/scroll.c:14906:14747:0:
+openfiles: /dos/z/16/scroll.c:1900:1692:1:
 openfiles: /dos/z/16/modex16.c:6838:6141:0:
 openfiles: /dos/z/16/modex16.h:1057:344:0:
-openfiles: /dos/z/16/pcxtest.c:795:442:0:
+openfiles: /dos/z/16/pcxtest.c:753:655:0:
 openfiles: /dos/z/16/dos_kb.c:3759:2440:0:
 openfiles: /dos/z/16/dos_kb.h:464:0:0:
 openfiles: /dos/z/16/lib/lib_head.h:1738:1347:0:
-openfiles: /dos/z/16/README:1119:0:1:
 openfiles: /dos/z/16/makefile:181:0:0:
-openfiles: /dos/z/keen-src/id_mm.c:1835:14598:0:
+openfiles: /dos/z/keen-src/id_mm.c:1835:14248:0:
 openfiles: /dos/z/keen-src/id_mm.h:0:1024:0:
 openfiles: /dos/z/keen-src/id_rf.c:46629:47657:0:
 openfiles: /dos/z/keen-src/id_rf.h:0:0:0:
diff --git a/scroll.c b/scroll.c
index cb443902..d0e6d353 100644
--- a/scroll.c
+++ b/scroll.c
@@ -120,17 +120,12 @@ void main() {
 	modexClearRegion(spri->page, player.triggerx*16, player.triggery*16, 16, 16, 0);
 	modexClearRegion(bg->page, player.triggerx*16, player.triggery*16, 16, 16, 0);
 	modexShowPage(spri->page);
-	//bool run = 0;
 	while(!keyp(1))//!keyp(1))
 	{
 	//top left corner & bottem right corner of map veiw be set as map edge trigger since maps are actually square
 	//to stop scrolling and have the player position data move to the edge of the screen with respect to the direction
 	//when player.tx or player.ty == 0 or player.tx == 20 or player.ty == 15 then stop because that is edge of map and you do not want to walk of the map
 
-	//trying to remove initial drawing of sprite
-	/*if(!run){ modexCopyPageRegion(bg->page, spri->page, player.x-4, player.y-TILEWH, player.x-4, player.y-TILEWH, 24, 32);
-	modexShowPage(bg->page); run = 1; }*/
-	
 	#define INC_PER_FRAME if(q&1) persist_aniframe++; if(persist_aniframe>4) persist_aniframe = 1;	
 
 	//temp testing
@@ -565,8 +560,8 @@ mapDrawCol(map_view_t *mv, int tx, int ty, word x) {
 void
 animatePlayer(map_view_t *src, map_view_t *dest, /*map_view_t *top, */short d1, short d2, int x, int y, int ls, int lp, bitmap_t *bmp)
 {
-	short dire=32*d1;
-	short qq;
+	short dire=32*d1; //direction
+	short qq; //scroll offset
 
 	if(d2==0) qq = 0;
 	else qq = ((lp)*SPEED);
diff --git a/scroll.exe b/scroll.exe
index 7ebf39a8c0a1baa3b95b4263f5ee0aa63651e9fe..0d9d8ee496ea4188327f579ddbcca4de180c00ec 100644
GIT binary patch
delta 18
acmdn-m1)OUrVTSUF&i+eZ=SPBh64arRR`Pv

delta 18
acmdn-m1)OUrVTSUF&i>#Z=SPBh64arbqC=9

-- 
2.39.5