summaryrefslogtreecommitdiff
path: root/src/engine.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-18 17:31:41 +0000
committerrubidium <rubidium@openttd.org>2007-05-18 17:31:41 +0000
commitc8d05162c296a6fdec7a02163b21e2fce2da7272 (patch)
tree3eac526253ee6111911b7ea868ca46065b6d5889 /src/engine.h
parent2a7442fda4bddeab5da85c19e957a9ed39a70d05 (diff)
downloadopenttd-c8d05162c296a6fdec7a02163b21e2fce2da7272.tar.xz
(svn r9869) -Codechange: replace some bytes with VehicleType, i.e. more type strictness.
Diffstat (limited to 'src/engine.h')
-rw-r--r--src/engine.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine.h b/src/engine.h
index 641299697..c54e3bb10 100644
--- a/src/engine.h
+++ b/src/engine.h
@@ -120,7 +120,7 @@ struct Engine {
PlayerByte preview_player;
byte preview_wait;
byte player_avail;
- byte type; ///< type, ie VEH_ROAD, VEH_TRAIN, etc. Same as in vehicle.h
+ VehicleType type; ///< type, ie VEH_ROAD, VEH_TRAIN, etc. Same as in vehicle.h
};
/**
@@ -341,7 +341,7 @@ int32 RemoveEngineReplacement(EngineRenewList* erl, EngineID engine, uint32 flag
/** When an engine is made buildable or is removed from being buildable, add/remove it from the build/autoreplace lists
* @param type The type of engine
*/
-void AddRemoveEngineFromAutoreplaceAndBuildWindows(byte type);
+void AddRemoveEngineFromAutoreplaceAndBuildWindows(VehicleType type);
/* Engine list manipulators - current implementation is only C wrapper of CBlobT<EngineID> class (helpers.cpp) */
void EngList_Create(EngineList *el); ///< Creates engine list