summaryrefslogtreecommitdiff
path: root/src/newgrf_commons.h
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-11-12 20:40:58 +0000
committerglx <glx@openttd.org>2007-11-12 20:40:58 +0000
commit60ccc5bbce380f8b6203902b9206e0e86ba8462b (patch)
treec2837b3eb9dae895812edefca8ada66006ce06ed /src/newgrf_commons.h
parent49b4aa32bb2bc0085ad5c1f1e197c9c45c6ba132 (diff)
downloadopenttd-60ccc5bbce380f8b6203902b9206e0e86ba8462b.tar.xz
(svn r11423) -Codechange: store grfid when adding an override
Diffstat (limited to 'src/newgrf_commons.h')
-rw-r--r--src/newgrf_commons.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf_commons.h b/src/newgrf_commons.h
index a8e3eabf9..c4526a89c 100644
--- a/src/newgrf_commons.h
+++ b/src/newgrf_commons.h
@@ -28,6 +28,7 @@ struct EntityIDMapping {
class OverrideManagerBase {
protected:
uint16 *entity_overrides;
+ uint32 *grfid_overrides;
uint16 max_offset; ///< what is the length of the original entity's array of specs
uint16 max_new_entities; ///< what is the amount of entities, old and new summed
@@ -44,7 +45,7 @@ public:
void ResetOverride();
void ResetMapping();
- void Add(uint8 local_id, uint entity_type);
+ void Add(uint8 local_id, uint32 grfid, uint entity_type);
virtual uint16 AddEntityID(byte grf_local_id, uint32 grfid, byte substitute_id);
uint16 GetSubstituteID(byte entity_id);