summaryrefslogtreecommitdiff
path: root/src/engine.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-12 19:58:06 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-12 19:58:06 +0000
commitab8382c0db353d9d1ba6b7a9690d56aa2415258c (patch)
treef23fb584e594e0c9ff5a9ad650d97c493714078d /src/engine.h
parenta222fe2e86d2736217f3bba43b28e95297b8d71e (diff)
downloadopenttd-ab8382c0db353d9d1ba6b7a9690d56aa2415258c.tar.xz
(svn r11822) -Codechange: Replaced fixed size custom name array. Names are now attached to their object directly and there is
no limit to the amount of names. -Fix: NewGRF engines could not be renamed.
Diffstat (limited to 'src/engine.h')
-rw-r--r--src/engine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine.h b/src/engine.h
index 08f1caf8a..be8eb397e 100644
--- a/src/engine.h
+++ b/src/engine.h
@@ -109,9 +109,11 @@ struct EngineInfo {
byte misc_flags;
byte callbackmask;
byte retire_early; ///< Number of years early to retire vehicle
+ StringID string_id; ///< Default name of engine
};
struct Engine {
+ char *name; ///< Custom name of engine
Date intro_date;
Date age;
uint16 reliability;