James H points out a rogue fprintf in Net's print routine.

[originally from svn r6202]
This commit is contained in:
Simon Tatham
2005-08-22 22:58:19 +00:00
parent fb6e7f1a8b
commit 196695afdf

1
net.c
View File

@ -2801,7 +2801,6 @@ static void game_print(drawing *dr, game_state *state, int tilesize)
for (y = 0; y <= h; y++) for (y = 0; y <= h; y++)
for (x = 0; x <= w; x++) { for (x = 0; x <= w; x++) {
int b = barrier(state, x % w, y % h); int b = barrier(state, x % w, y % h);
fprintf(stderr, "%d,%d: %d\n", x, y, b);
if (x < w && (b & U)) if (x < w && (b & U))
draw_rect(dr, WINDOW_OFFSET + TILE_SIZE * x - TILE_SIZE/24, draw_rect(dr, WINDOW_OFFSET + TILE_SIZE * x - TILE_SIZE/24,
WINDOW_OFFSET + TILE_SIZE * y - TILE_SIZE/24, WINDOW_OFFSET + TILE_SIZE * y - TILE_SIZE/24,