mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Fix width/height braino introduced in r5844.
[originally from svn r8643] [r5844 == 865e8ad6ca3d83ad2a585ceeb1809e9f68c18a20]
This commit is contained in:
2
net.c
2
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;
|
||||
|
Reference in New Issue
Block a user