~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
There's always one. Forgot to add Pegs to `make install'.
[sgt/puzzles]
/
flip.c
diff --git
a/flip.c
b/flip.c
index
f1fcaf6
..
503681e
100644
(file)
--- a/
flip.c
+++ b/
flip.c
@@
-928,8
+928,8
@@
static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
default: assert(!"shouldn't get here");
}
ui->cx += dx; ui->cy += dy;
default: assert(!"shouldn't get here");
}
ui->cx += dx; ui->cy += dy;
- ui->cx = min(max(ui->cx, 0), state->w);
- ui->cy = min(max(ui->cy, 0), state->h);
+ ui->cx = min(max(ui->cx, 0), state->w
- 1
);
+ ui->cy = min(max(ui->cy, 0), state->h
- 1
);
ui->cdraw = 1;
nullret = "";
}
ui->cdraw = 1;
nullret = "";
}