mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Distinguish MOVE_UNUSED from MOVE_NO_EFFECT in Flip
This commit is contained in:
4
flip.c
4
flip.c
@ -950,7 +950,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
|||||||
int x, int y, int button)
|
int x, int y, int button)
|
||||||
{
|
{
|
||||||
int w = state->w, h = state->h, wh = w * h;
|
int w = state->w, h = state->h, wh = w * h;
|
||||||
char buf[80], *nullret = NULL;
|
char buf[80], *nullret = MOVE_UNUSED;
|
||||||
|
|
||||||
if (button == LEFT_BUTTON || IS_CURSOR_SELECT(button)) {
|
if (button == LEFT_BUTTON || IS_CURSOR_SELECT(button)) {
|
||||||
int tx, ty;
|
int tx, ty;
|
||||||
@ -979,7 +979,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
|||||||
sprintf(buf, "M%d,%d", tx, ty);
|
sprintf(buf, "M%d,%d", tx, ty);
|
||||||
return dupstr(buf);
|
return dupstr(buf);
|
||||||
} else {
|
} else {
|
||||||
return NULL;
|
return MOVE_NO_EFFECT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user