From e916e94a401b186537fe7af34a872eeb5f1e09f8 Mon Sep 17 00:00:00 2001 From: Frank Zago Date: Sat, 24 Oct 2009 03:51:14 +0000 Subject: [PATCH] Commented out unused code. --- hch/CObjectHandler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hch/CObjectHandler.cpp b/hch/CObjectHandler.cpp index 628d4ac80..fb0797f80 100644 --- a/hch/CObjectHandler.cpp +++ b/hch/CObjectHandler.cpp @@ -486,6 +486,11 @@ unsigned int CGHeroInstance::getTileCost(const TerrainTile &dest, const TerrainT } return ret; } +#if 0 +// Unused and buggy method. +// - for loop is wrong. will not find all creatures. must use iterator instead. +// - -> is the slot number. use second->first for creature index +// Is lowestSpeed() the correct equivalent ? unsigned int CGHeroInstance::getLowestCreatureSpeed() const { unsigned int sl = 100; @@ -496,6 +501,7 @@ unsigned int CGHeroInstance::getLowestCreatureSpeed() const } return sl; } +#endif int3 CGHeroInstance::convertPosition(int3 src, bool toh3m) //toh3m=true: manifest->h3m; toh3m=false: h3m->manifest { if (toh3m)