diff options
author | frosch <frosch@openttd.org> | 2011-11-08 17:22:19 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-11-08 17:22:19 +0000 |
commit | e08a227b535fe5ea2fe8d986c308519fcd8fbf86 (patch) | |
tree | 47de21dfd37fe284ce8a4909d0fb32c06542bbfd /src/newgrf.cpp | |
parent | 7a3e362763d248c852663c49178f5f690b9782fc (diff) | |
download | openttd-e08a227b535fe5ea2fe8d986c308519fcd8fbf86.tar.xz |
(svn r23136) -Change: [NewGRF v8] Deprecate old-style callback results 0xFF??.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 530eb5a9b..61815e705 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -4240,7 +4240,7 @@ static const SpriteGroup *GetGroupFromGroupID(byte setid, byte type, uint16 grou { if (HasBit(groupid, 15)) { assert(CallbackResultSpriteGroup::CanAllocateItem()); - return new CallbackResultSpriteGroup(groupid); + return new CallbackResultSpriteGroup(groupid, _cur.grffile->grf_version >= 8); } if (groupid > MAX_SPRITEGROUP || _cur.spritegroups[groupid] == NULL) { @@ -4263,7 +4263,7 @@ static const SpriteGroup *CreateGroupFromGroupID(byte feature, byte setid, byte { if (HasBit(spriteid, 15)) { assert(CallbackResultSpriteGroup::CanAllocateItem()); - return new CallbackResultSpriteGroup(spriteid); + return new CallbackResultSpriteGroup(spriteid, _cur.grffile->grf_version >= 8); } if (!_cur.IsValidSpriteSet(feature, spriteid)) { |