From: sparky4 Date: Mon, 30 Mar 2015 23:38:08 +0000 (-0500) Subject: IT'S WORKING!!!!!!!!!!!!!!! WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW... X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=d64a24c31ff7a7dab828b624a5540114e5feb315;p=16.git IT'S WORKING!!!!!!!!!!!!!!! WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWwwwwWWwwWwwWwwWwwWwWwwWwWwwWwWWw modified: scroll.exe modified: src/scroll.c --- diff --git a/scroll.exe b/scroll.exe index 44ff38b1..e1415174 100644 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/src/scroll.c b/src/scroll.c index 5cea58ed..29d22806 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -804,8 +804,6 @@ void mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y) { word rx; word ry; - //rx = (i % t->cols) * t->tileWidth; - //ry = (i / t->cols) * t->tileHeight; //if(i==0) i=2; if(i==0) { @@ -815,11 +813,6 @@ mapDrawTile(tiles_t *t, word i, page_t *page, word x, word y) { { rx = (((i-1) % ((t->data->width)/t->tileWidth)) * t->tileWidth); ry = (((i-1) / ((t->data->height)/t->tileHeight)) * t->tileHeight); - if(i==5) printf("rx= %d\n", rx); - if(i==5) printf("ry= %d\n", ry); - if(i==5) printf("i= %d\n", i); - //if(i==4) printf("x= %d\n", (i % ((t->data->width*i)/t->tileWidth)) * t->tileWidth); - //if(i==4) printf("y= %d\n", (i / ((t->data->height*i)/t->tileHeight)) * t->tileHeight); //mxPutTile(t->data, x, y, t->tileWidth, t->tileHeight); modexDrawBmpRegion(page, x, y, rx, ry, t->tileWidth, t->tileHeight, (t->data)); } @@ -836,9 +829,6 @@ mapDrawRow(map_view_t *mv, int tx, int ty, word y) { for(x=0; xdxThresh && tx < mv->map->width; x+=mv->map->tiles->tileWidth, tx++) { if(i>=0) { /* we are in the map, so copy! */ - //if(mv->map->data[i]==0) mv->map->data[i]=2; - //if(mv->map->data[i]==0) modexClearRegion(mv->page, x, y, 16, 16, 0); - //else mapDrawTile(mv->map->tiles, mv->map->data[i], mv->page, x, y); } i++; /* next! */ @@ -858,9 +848,6 @@ mapDrawCol(map_view_t *mv, int tx, int ty, word x) { for(y=0; ydyThresh && ty < mv->map->height; y+=mv->map->tiles->tileHeight, ty++) { if(i>=0) { /* we are in the map, so copy away! */ - //if(mv->map->data[i]==0) mv->map->data[i]=2; - //if(mv->map->data[i]==0) modexClearRegion(mv->page, x, y, 16, 16, 0); - //else mapDrawTile(mv->map->tiles, mv->map->data[i], mv->page, x, y); } i += mv->map->width;