summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-28 19:49:48 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-28 19:49:48 +0000
commitfc91cd8135ecec78aa29f2a59129fe8e95030a8c (patch)
treeb4725e1608b590e03bfc16503111e55e874c77a3
parent93e1ebb0e70bf7f6e53559152bae72a482d14d1c (diff)
downloadopenttd-fc91cd8135ecec78aa29f2a59129fe8e95030a8c.tar.xz
(svn r4609) - NewGRF: give GetCustomEngineSprite the correct return type
-rw-r--r--newgrf_engine.c2
-rw-r--r--newgrf_engine.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/newgrf_engine.c b/newgrf_engine.c
index c6f7be5f0..06c0c11f1 100644
--- a/newgrf_engine.c
+++ b/newgrf_engine.c
@@ -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;
diff --git a/newgrf_engine.h b/newgrf_engine.h
index 6f05d8133..d21537771 100644
--- a/newgrf_engine.h
+++ b/newgrf_engine.h
@@ -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);