forked from mirror/OpenTTD
(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:
2
engine.c
2
engine.c
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user