changed the tunnel rotation to match the smaller texture
authorJohn Tsiombikas <nuclear@mutantstargoat.com>
Tue, 4 Oct 2016 16:05:36 +0000 (19:05 +0300)
committerJohn Tsiombikas <nuclear@mutantstargoat.com>
Tue, 4 Oct 2016 16:05:36 +0000 (19:05 +0300)
src/tunnel.c

index d10c691..56d0793 100644 (file)
@@ -220,7 +220,7 @@ static void draw_tunnel_range(unsigned short *pix, int xoffs, int yoffs, int sta
        unsigned int *tmap = tunnel_map + (starty + yoffs) * vxsz + xoffs;
        unsigned char *fog = tunnel_fog + (starty + yoffs) * vxsz + xoffs;
 
-       long toffs = tm / 4;
+       long toffs = tm / 8;
        unsigned int *pixels = (unsigned int*)pix + starty * (fb_width >> 1);
 
        for(i=0; i<num_lines; i++) {