diff options
author | rubidium <rubidium@openttd.org> | 2010-08-11 18:50:23 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-11 18:50:23 +0000 |
commit | e0a3a0fd54cff08f8d721dded1dc9651296de1d2 (patch) | |
tree | 1533e35e734dde48a461330c6325c09fbd07c1c8 /src/newgrf_commons.cpp | |
parent | 6b4f36533c2866eec9a8ff72a9b2f4694c713fc8 (diff) | |
download | openttd-e0a3a0fd54cff08f8d721dded1dc9651296de1d2.tar.xz |
(svn r20448) -Codechange: make some functions that can be const const
Diffstat (limited to 'src/newgrf_commons.cpp')
-rw-r--r-- | src/newgrf_commons.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_commons.cpp b/src/newgrf_commons.cpp index a169b17e4..b3982c557 100644 --- a/src/newgrf_commons.cpp +++ b/src/newgrf_commons.cpp @@ -92,7 +92,7 @@ void OverrideManagerBase::ResetOverride() * @param grfid ID of the grf file * @return the ID of the candidate, of the Invalid flag item ID */ -uint16 OverrideManagerBase::GetID(uint8 grf_local_id, uint32 grfid) +uint16 OverrideManagerBase::GetID(uint8 grf_local_id, uint32 grfid) const { const EntityIDMapping *map; @@ -146,7 +146,7 @@ uint16 OverrideManagerBase::AddEntityID(byte grf_local_id, uint32 grfid, byte su * @param entity_id of the entity being queried * @return mapped id */ -uint16 OverrideManagerBase::GetSubstituteID(uint16 entity_id) +uint16 OverrideManagerBase::GetSubstituteID(uint16 entity_id) const { return mapping_ID[entity_id].substitute_id; } @@ -185,7 +185,7 @@ void HouseOverrideManager::SetEntitySpec(const HouseSpec *hs) * @param grfid ID of the grf file * @return the ID of the candidate, of the Invalid flag item ID */ -uint16 IndustryOverrideManager::GetID(uint8 grf_local_id, uint32 grfid) +uint16 IndustryOverrideManager::GetID(uint8 grf_local_id, uint32 grfid) const { uint16 id = OverrideManagerBase::GetID(grf_local_id, grfid); if (id != invalid_ID) return id; |