chiark / gitweb /
Lee Dowling points out that duplicating the entire grid data
authorSimon Tatham <anakin@pobox.com>
Thu, 5 Feb 2009 19:25:44 +0000 (19:25 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 5 Feb 2009 19:25:44 +0000 (19:25 +0000)
commit279c6781797a5df310cf73a0a952ad0c2b83fbbc
tree3db44e52681e1337d5c695014458f46dba2f9626
parent918842835b7a7d092e1ca096b41e791a326d0756
Lee Dowling points out that duplicating the entire grid data
structure in every game_state is terribly wasteful. Move all the
constant bits of it (i.e. everything except the per-square 'blue'
flag) into a ref-counted shared structure.

[originally from svn r8444]
cube.c