forked from mirror/OpenTTD
(svn r23136) -Change: [NewGRF v8] Deprecate old-style callback results 0xFF??.
This commit is contained in:
@@ -175,7 +175,7 @@ const SpriteGroup *DeterministicSpriteGroup::Resolve(ResolverObject *object) con
|
||||
if (this->num_ranges == 0) {
|
||||
/* nvar == 0 is a special case -- we turn our value into a callback result */
|
||||
if (value != CALLBACK_FAILED) value = GB(value, 0, 15);
|
||||
static CallbackResultSpriteGroup nvarzero(0);
|
||||
static CallbackResultSpriteGroup nvarzero(0, true);
|
||||
nvarzero.result = value;
|
||||
return &nvarzero;
|
||||
}
|
||||
|
Reference in New Issue
Block a user