(svn r23136) -Change: [NewGRF v8] Deprecate old-style callback results 0xFF??.

This commit is contained in:
frosch
2011-11-08 17:22:19 +00:00
parent 7a3e362763
commit e08a227b53
3 changed files with 7 additions and 6 deletions

View File

@@ -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;
}