mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Fix bit rot in the 'unfinished' subdir.
Several of the source files here won't quite compile any more, because of minor things like const-correctness and the UI_UPDATE change. Now they should all build again (without prejudice to how useful they are once they have built). The biggest change was to remove the fatal() implementation from the standalone path.c, because my new plan is that basically everything that's not linked against a true puzzle frontend will be linked against nullfe.c, which provides that function anyway.
This commit is contained in:
@ -899,7 +899,7 @@ static const char *validate_desc(const game_params *params, const char *desc)
|
||||
int *link;
|
||||
int mains = 0;
|
||||
int i, tx, ty, minmoves;
|
||||
char *ret;
|
||||
const char *ret;
|
||||
|
||||
active = snewn(wh, bool);
|
||||
link = snewn(wh, int);
|
||||
@ -1395,7 +1395,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
|
||||
sprintf(data, "M%d-%d", ui->drag_anchor, ui->drag_currpos);
|
||||
str = dupstr(data);
|
||||
} else
|
||||
str = ""; /* null move; just update the UI */
|
||||
str = UI_UPDATE;
|
||||
|
||||
ui->dragging = false;
|
||||
ui->drag_anchor = ui->drag_currpos = -1;
|
||||
|
Reference in New Issue
Block a user