mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-18 05:01:13 +00:00
Codefix: Pass cargo as CargoID. (#13311)
This commit is contained in:
parent
4670a62342
commit
41c9f2d82c
@ -50,7 +50,7 @@ const SpriteGroup *GetWagonOverrideSpriteSet(EngineID engine, CargoID cargo, Eng
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void SetCustomEngineSprites(EngineID engine, uint8_t cargo, const SpriteGroup *group)
|
||||
void SetCustomEngineSprites(EngineID engine, CargoID cargo, const SpriteGroup *group)
|
||||
{
|
||||
Engine *e = Engine::Get(engine);
|
||||
assert(cargo < std::size(e->grf_prop.spritegroup));
|
||||
|
@ -78,7 +78,7 @@ struct VehicleSpriteSeq;
|
||||
|
||||
void SetWagonOverrideSprites(EngineID engine, CargoID cargo, const struct SpriteGroup *group, std::span<EngineID> engine_ids);
|
||||
const SpriteGroup *GetWagonOverrideSpriteSet(EngineID engine, CargoID cargo, EngineID overriding_engine);
|
||||
void SetCustomEngineSprites(EngineID engine, uint8_t cargo, const struct SpriteGroup *group);
|
||||
void SetCustomEngineSprites(EngineID engine, CargoID cargo, const struct SpriteGroup *group);
|
||||
|
||||
void GetCustomEngineSprite(EngineID engine, const Vehicle *v, Direction direction, EngineImageType image_type, VehicleSpriteSeq *result);
|
||||
#define GetCustomVehicleSprite(v, direction, image_type, result) GetCustomEngineSprite(v->engine_type, v, direction, image_type, result)
|
||||
|
Loading…
Reference in New Issue
Block a user