1
0
Fork 0

(svn r6836) - Codechange: constify SpriteGroup references. These used to be non-const when we kept a reference count, which we don't do anymore.

release/0.5
peter1138 2006-10-19 10:20:36 +00:00
parent fde4bf4cca
commit 81d41b8d57
1 changed files with 5 additions and 5 deletions

View File

@ -19,8 +19,8 @@ typedef struct RealSpriteGroup {
byte num_loaded; ///< Number of loaded groups byte num_loaded; ///< Number of loaded groups
byte num_loading; ///< Number of loading groups byte num_loading; ///< Number of loading groups
SpriteGroup **loaded; ///< List of loaded groups (can be SpriteIDs or Callback results) const 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 **loading; ///< List of loading groups (can be SpriteIDs or Callback results)
} RealSpriteGroup; } RealSpriteGroup;
/* Shared by deterministic and random groups. */ /* Shared by deterministic and random groups. */
@ -73,7 +73,7 @@ typedef struct DeterministicSpriteGroupAdjust {
typedef struct DeterministicSpriteGroupRange { typedef struct DeterministicSpriteGroupRange {
SpriteGroup *group; const SpriteGroup *group;
uint32 low; uint32 low;
uint32 high; uint32 high;
} DeterministicSpriteGroupRange; } DeterministicSpriteGroupRange;
@ -88,7 +88,7 @@ typedef struct DeterministicSpriteGroup {
DeterministicSpriteGroupRange *ranges; // Dynamically allocated DeterministicSpriteGroupRange *ranges; // Dynamically allocated
// Dynamically allocated, this is the sole owner // Dynamically allocated, this is the sole owner
SpriteGroup *default_group; const SpriteGroup *default_group;
} DeterministicSpriteGroup; } DeterministicSpriteGroup;
typedef enum RandomizedSpriteGroupCompareModes { typedef enum RandomizedSpriteGroupCompareModes {
@ -109,7 +109,7 @@ typedef struct RandomizedSpriteGroup {
byte num_groups; // must be power of 2 byte num_groups; // must be power of 2
// Take the group with appropriate index: // Take the group with appropriate index:
SpriteGroup **groups; const SpriteGroup **groups;
} RandomizedSpriteGroup; } RandomizedSpriteGroup;