(svn r3015) -NewGRF: Add a new sprite group result type, and support loading of callbacks results within random and "real" groups. (Not fully supported yet.)

This commit is contained in:
2005-10-04 20:38:26 +00:00
parent 9fabe008a0
commit d1591e864d
4 changed files with 46 additions and 13 deletions

View File

@@ -1349,9 +1349,9 @@ uint32 GetCustomStationRelocation(const StationSpec *spec, const Station *st, by
const RealSpriteGroup *rsg = ResolveStationSpriteGroup(spec->spritegroup[ctype], st);
if (rsg->sprites_per_set != 0) {
if (rsg->loading_count != 0) return rsg->loading[0];
if (rsg->loading_count != 0) return rsg->loading[0]->g.result.result;
if (rsg->loaded_count != 0) return rsg->loaded[0];
if (rsg->loaded_count != 0) return rsg->loaded[0]->g.result.result;
}
error("Custom station 0x%08x::0x%02x has no sprites associated.",