diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-10-22 16:35:23 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-10-22 16:35:23 +0000 |
| commit | b7f192eea34e0bd36abcd457333ab37eb221789f (patch) | |
| tree | 91f6482f7eec6deb4d1de4a0e2838a2b091962f3 /midend.c | |
| parent | 6824dcde03d894886fea4c1e16e0020a9c176225 (diff) | |
| download | puzzles-b7f192eea34e0bd36abcd457333ab37eb221789f.zip puzzles-b7f192eea34e0bd36abcd457333ab37eb221789f.tar.gz puzzles-b7f192eea34e0bd36abcd457333ab37eb221789f.tar.bz2 puzzles-b7f192eea34e0bd36abcd457333ab37eb221789f.tar.xz | |
Cleanup: the `mouse_priorities' field in the back end has been a
more general-purpose flags word for some time now. Rename it to
`flags'.
[originally from svn r6414]
Diffstat (limited to 'midend.c')
| -rw-r--r-- | midend.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -578,7 +578,7 @@ static int midend_really_process_key(midend *me, int x, int y, int button) * See if this move requires an animation. */ if (special(type) && !(type == SOLVE && - (me->ourgame->mouse_priorities & SOLVE_ANIMATES))) { + (me->ourgame->flags & SOLVE_ANIMATES))) { anim_time = 0; } else { anim_time = me->ourgame->anim_length(oldstate, @@ -690,7 +690,7 @@ int midend_process_key(midend *me, int x, int y, int button) * If the new button has lower priority than the old one, * don't bother doing this. */ - if (me->ourgame->mouse_priorities & + if (me->ourgame->flags & BUTTON_BEATS(me->pressed_mouse_button, button)) return ret; /* just ignore it */ @@ -1214,7 +1214,7 @@ char *midend_solve(midend *me) me->states[me->statepos-2].state, me->states[me->statepos-1].state); me->dir = +1; - if (me->ourgame->mouse_priorities & SOLVE_ANIMATES) { + if (me->ourgame->flags & SOLVE_ANIMATES) { me->oldstate = me->ourgame->dup_game(me->states[me->statepos-2].state); me->anim_time = me->ourgame->anim_length(me->states[me->statepos-2].state, |