mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-22 23:26:34 +00:00
(svn r4609) - NewGRF: give GetCustomEngineSprite the correct return type
This commit is contained in:
parent
93e1ebb0e7
commit
fc91cd8135
@ -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