From: Nick Bowler Date: Wed, 14 Dec 2022 03:10:15 +0000 (-0500) Subject: Pack/unpack the tile planes arithmetically. X-Git-Url: http://git.draconx.ca/gitweb/rrace.git/commitdiff_plain/f6be82664a5b8e8bc34c048b56417b591dcd5a5e?ds=sidebyside;hp=f6be82664a5b8e8bc34c048b56417b591dcd5a5e Pack/unpack the tile planes arithmetically. Instead of a bunch of if statements, add a macro to extract an individual tile value from the game/goal bitmaps using bitwise arithmetic, and restructure the drawing paths to use it. A similar change is made to populate the bitmaps during game board initialization. This simplifies the code a bit and also seems to reduce the compiled size somewhat. ---