mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Infrastructure change which I've been thinking about for a while:
the back end function solve_game() now takes the _current_ game_state in addition to the initial one. [originally from svn r5969]
This commit is contained in:
4
midend.c
4
midend.c
@ -947,7 +947,9 @@ char *midend_solve(midend_data *me)
|
||||
return "No game set up to solve"; /* _shouldn't_ happen! */
|
||||
|
||||
msg = "Solve operation failed"; /* game _should_ overwrite on error */
|
||||
s = me->ourgame->solve(me->states[0].state, me->aux_info, &msg);
|
||||
s = me->ourgame->solve(me->states[0].state,
|
||||
me->states[me->statepos-1].state,
|
||||
me->aux_info, &msg);
|
||||
if (!s)
|
||||
return msg;
|
||||
|
||||
|
Reference in New Issue
Block a user