(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

@@ -580,7 +580,7 @@ int GetCustomEngineSprite(EngineID engine, const Vehicle *v, byte direction)
spriteset--;
}
r = (in_motion ? rsg->loaded[spriteset] : rsg->loading[spriteset]) + direction;
r = (in_motion ? rsg->loaded[spriteset]->g.result.result : rsg->loading[spriteset]->g.result.result) + direction;
return r;
}