simon-git: puzzles (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Wed Nov 7 19:20:58 GMT 2018
TL;DR:
b732fda Undead: remove an unused structure field.
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2018-11-07 19:20:58
commit b732fda2cf611b6f67c68e3a26077897afe41741
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=b732fda2cf611b6f67c68e3a26077897afe41741;hp=3189fb484dcfe4efe42b2b30e529389db9dd0d00
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Nov 7 19:16:00 2018 +0000
Undead: remove an unused structure field.
I noticed that state->common, which is shared between all the game
states in an undo chain, has a 'solved' flag in it. That's not right -
solvedness as a property of a particular state on the chain belongs in
the game_state itself, and having-at-one-point-been-solved-ness as a
persistent property of the whole chain belongs in the game_ui.
Fortunately, the game isn't actually doing it wrong:
state->common->solved is set once and then never read, so it must have
been left in from early abandoned code. Now removed.
undead.c | 2 --
1 file changed, 2 deletions(-)
More information about the tartarus-commits
mailing list