Refactor. Instead of

static Game g_Games[NUM_GAMES] =
{
    { a ... },
    { b ... }
};

do

static Game g_Game_A =
{
  a ...
};

static Game &g_Games[NUM_GAMES] =
{ &g_Game_A, &g_Game_B, &g_Game_C };

This allows much easier organizing data by game, and splitting large arrays
into a dynamically sized array instead of having large fixed-size arrays sized
for the largest one.  The GAME_ array may be deprecated, and this may be done
for styles too.
This commit is contained in:
Glenn Maynard
2007-01-12 05:30:21 +00:00
parent 3ff773e575
commit adaf15291c
File diff suppressed because it is too large Load Diff