(svn r3014) -NewGRF, Codechange: Make all sprite group references be pointers instead of copying the data around.
This commit is contained in:
4
sprite.h
4
sprite.h
@@ -107,7 +107,7 @@ typedef struct RandomizedSpriteGroup {
|
||||
byte num_groups; // must be power of 2
|
||||
|
||||
// Take the group with appropriate index:
|
||||
SpriteGroup *groups;
|
||||
SpriteGroup **groups;
|
||||
} RandomizedSpriteGroup;
|
||||
|
||||
typedef struct CallbackResultSpriteGroup {
|
||||
@@ -133,7 +133,7 @@ struct SpriteGroup {
|
||||
};
|
||||
|
||||
struct DeterministicSpriteGroupRange {
|
||||
SpriteGroup group;
|
||||
SpriteGroup *group;
|
||||
byte low;
|
||||
byte high;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user