mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r4609) - NewGRF: give GetCustomEngineSprite the correct return type
This commit is contained in:
parent
59ce9cce9c
commit
5b5e274796
@ -405,7 +405,7 @@ static const SpriteGroup *GetVehicleSpriteGroup(EngineID engine, const Vehicle *
|
||||
return group;
|
||||
}
|
||||
|
||||
int GetCustomEngineSprite(EngineID engine, const Vehicle* v, Direction direction)
|
||||
SpriteID GetCustomEngineSprite(EngineID engine, const Vehicle* v, Direction direction)
|
||||
{
|
||||
const SpriteGroup *group;
|
||||
const RealSpriteGroup *rsg;
|
||||
|
@ -17,7 +17,7 @@ VARDEF const uint32 cargo_classes[16];
|
||||
void SetWagonOverrideSprites(EngineID engine, struct SpriteGroup *group, byte *train_id, int trains);
|
||||
void SetCustomEngineSprites(EngineID engine, byte cargo, struct SpriteGroup *group);
|
||||
// loaded is in percents, overriding_engine 0xffff is none
|
||||
int GetCustomEngineSprite(EngineID engine, const Vehicle* v, Direction direction);
|
||||
SpriteID GetCustomEngineSprite(EngineID engine, const Vehicle* v, Direction direction);
|
||||
|
||||
void SetEngineGRF(EngineID engine, uint32 grfid);
|
||||
uint32 GetEngineGRFID(EngineID engine);
|
||||
|
Loading…
Reference in New Issue
Block a user