diff options
author | peter1138 <peter1138@openttd.org> | 2006-10-19 10:20:36 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-10-19 10:20:36 +0000 |
commit | 81d41b8d578e2c2cabf198ecede702a38824b5a5 (patch) | |
tree | 41d56fab2e0d9c7467a9051669fc877e6650ffb2 | |
parent | fde4bf4cca672cff3dd26a99bf3296749210d567 (diff) | |
download | openttd-81d41b8d578e2c2cabf198ecede702a38824b5a5.tar.xz |
(svn r6836) - Codechange: constify SpriteGroup references. These used to be non-const when we kept a reference count, which we don't do anymore.
-rw-r--r-- | newgrf_spritegroup.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/newgrf_spritegroup.h b/newgrf_spritegroup.h index e3c296be9..f77b6009d 100644 --- a/newgrf_spritegroup.h +++ b/newgrf_spritegroup.h @@ -19,8 +19,8 @@ typedef struct RealSpriteGroup { byte num_loaded; ///< Number of loaded groups byte num_loading; ///< Number of loading groups - SpriteGroup **loaded; ///< List of loaded groups (can be SpriteIDs or Callback results) - SpriteGroup **loading; ///< List of loading groups (can be SpriteIDs or Callback results) + const SpriteGroup **loaded; ///< List of loaded groups (can be SpriteIDs or Callback results) + const SpriteGroup **loading; ///< List of loading groups (can be SpriteIDs or Callback results) } RealSpriteGroup; /* Shared by deterministic and random groups. */ @@ -73,7 +73,7 @@ typedef struct DeterministicSpriteGroupAdjust { typedef struct DeterministicSpriteGroupRange { - SpriteGroup *group; + const SpriteGroup *group; uint32 low; uint32 high; } DeterministicSpriteGroupRange; @@ -88,7 +88,7 @@ typedef struct DeterministicSpriteGroup { DeterministicSpriteGroupRange *ranges; // Dynamically allocated // Dynamically allocated, this is the sole owner - SpriteGroup *default_group; + const SpriteGroup *default_group; } DeterministicSpriteGroup; typedef enum RandomizedSpriteGroupCompareModes { @@ -109,7 +109,7 @@ typedef struct RandomizedSpriteGroup { byte num_groups; // must be power of 2 // Take the group with appropriate index: - SpriteGroup **groups; + const SpriteGroup **groups; } RandomizedSpriteGroup; |