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
commit0f7392bd616e0bd256b5ec241ad52d7230bcc454 (patch)
treef23fb584e594e0c9ff5a9ad650d97c493714078d /src/engine.h
parent74f9be8f2c1dca108b88449e6935c61442cbf829 (diff)
downloadopenttd-0f7392bd616e0bd256b5ec241ad52d7230bcc454.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;