aboutsummaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2009-09-09 18:22:14 +0000
committerSimon Tatham <anakin@pobox.com>2009-09-09 18:22:14 +0000
commit503f6650e974ee5609182e7b3889f93296558939 (patch)
tree4d045458ed998f85e363b0e0336b706eb515c19e /net.c
parente794621861ee5a93202d6df748fec638be76a211 (diff)
downloadpuzzles-503f6650e974ee5609182e7b3889f93296558939.zip
puzzles-503f6650e974ee5609182e7b3889f93296558939.tar.gz
puzzles-503f6650e974ee5609182e7b3889f93296558939.tar.bz2
puzzles-503f6650e974ee5609182e7b3889f93296558939.tar.xz
Fix width/height braino introduced in r5844.
[originally from svn r8643] [r5844 == 865e8ad6ca3d83ad2a585ceeb1809e9f68c18a20]
Diffstat (limited to 'net.c')
-rw-r--r--net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net.c b/net.c
index 2b5275e..ecbbbfb 100644
--- a/net.c
+++ b/net.c
@@ -1652,7 +1652,7 @@ static game_state *new_game(midend *me, game_params *params, char *desc)
if (!(barrier(state, x, 0) & U) ||
!(barrier(state, x, state->height-1) & D))
state->wrapping = TRUE;
- for (y = 0; y < state->width; y++)
+ for (y = 0; y < state->height; y++)
if (!(barrier(state, 0, y) & L) ||
!(barrier(state, state->width-1, y) & R))
state->wrapping = TRUE;