diff options
author | glx <glx@openttd.org> | 2008-02-08 16:56:52 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-02-08 16:56:52 +0000 |
commit | 731137678cc61fed69fe621d0146f07672934920 (patch) | |
tree | db8111fc71fc815da99e819d25a04aa53ba09ebe /src/newgrf_commons.h | |
parent | 7b9efcea21788e41368c5b832ba8789ecf5bbd38 (diff) | |
download | openttd-731137678cc61fed69fe621d0146f07672934920.tar.xz |
(svn r12086) -Fix [FS#1747] (r11425): check overrides only for industries when mapping newgrf entities to 'real' entities
Diffstat (limited to 'src/newgrf_commons.h')
-rw-r--r-- | src/newgrf_commons.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf_commons.h b/src/newgrf_commons.h index 5b9dea9e7..80432d0fe 100644 --- a/src/newgrf_commons.h +++ b/src/newgrf_commons.h @@ -49,7 +49,7 @@ public: virtual uint16 AddEntityID(byte grf_local_id, uint32 grfid, byte substitute_id); uint16 GetSubstituteID(byte entity_id); - uint16 GetID(uint8 grf_local_id, uint32 grfid); + virtual uint16 GetID(uint8 grf_local_id, uint32 grfid); inline uint16 GetMaxMapping() { return max_new_entities; } inline uint16 GetMaxOffset() { return max_offset; } @@ -72,6 +72,7 @@ public: OverrideManagerBase(offset, maximum, invalid) {} virtual uint16 AddEntityID(byte grf_local_id, uint32 grfid, byte substitute_id); + virtual uint16 GetID(uint8 grf_local_id, uint32 grfid); void SetEntitySpec(IndustrySpec *inds); }; |