diff options
| author | Chaplain <aionthefirst@gmail.com> | 2012-06-21 21:05:45 +0300 |
|---|---|---|
| committer | Chaplain <aionthefirst@gmail.com> | 2012-06-21 21:05:45 +0300 |
| commit | 716e2db0e10673401ba7d6579899a8151ae64208 (patch) | |
| tree | c77fea50792ba67099a042ed37a03bd6aad98296 /src/server/game/Maps/Map.cpp | |
| parent | 98479c4555d9c8f0a6f56d30aca6cec68f7e1a71 (diff) | |
Core/Misc: Code-style + some const methods.
Diffstat (limited to 'src/server/game/Maps/Map.cpp')
| -rwxr-xr-x | src/server/game/Maps/Map.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index 82659e32016..270c4c782b6 100755 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -1230,7 +1230,7 @@ bool GridMap::loadLiquidData(FILE* in, uint32 offset, uint32 /*size*/) return true; } -uint16 GridMap::getArea(float x, float y) +uint16 GridMap::getArea(float x, float y) const { if (!_areaMap) return _gridArea; @@ -1463,7 +1463,7 @@ float GridMap::getHeightFromUint16(float x, float y) const return (float)((a * x) + (b * y) + c)*_gridIntHeightMultiplier + _gridHeight; } -float GridMap::getLiquidLevel(float x, float y) +float GridMap::getLiquidLevel(float x, float y) const { if (!_liquidMap) return _liquidLevel; @@ -1483,7 +1483,7 @@ float GridMap::getLiquidLevel(float x, float y) } // Why does this return LIQUID data? -uint8 GridMap::getTerrainType(float x, float y) +uint8 GridMap::getTerrainType(float x, float y) const { if (!_liquidFlags) return 0; |
