chiark / gitweb /
Unruly, Group: reference-count the 'immutable' array.
authorSimon Tatham <anakin@pobox.com>
Tue, 13 Nov 2018 21:58:14 +0000 (21:58 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 13 Nov 2018 21:58:14 +0000 (21:58 +0000)
commit47cec547e59ac8c5012f6091394dcb4304d64fc3
tree3eecd1216dd8562ec4285fb8f137a0e9773c550f
parentcdc0563123951822b2f5f514336f8890ee6df522
Unruly, Group: reference-count the 'immutable' array.

I noticed this during the bool trawl: both of these games have an
array of flags indicating which grid squares are immutable starting
clues, and copy it in every call to dup_game, which is completely
unnecessary because it doesn't change during play. So now each one
lives in a reference-counted structure, as per my usual practice in
similar cases elsewhere.
unfinished/group.c
unruly.c