From cd8c1a4d5c63336b6d6ee212ad6cfdc52bad01c7 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Fri, 3 Feb 2012 19:47:38 +0100 Subject: Revert "Checking being positions send by the server" This reverts commit 92fd074aa85e2357bfe1ab642209dd5a0d87e4d5. Reverting because these checks should be done server-side and because having them in the client would currently require wrapping them up in checks if there is even a current map due to the reliance on tile size (we need to handle the case where the current map didn't load properly without crashing). Conflicts: src/map.cpp src/net/manaserv/beinghandler.cpp Reviewed-by: Erik Schilling --- src/map.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/map.cpp') diff --git a/src/map.cpp b/src/map.cpp index b91c15ec..89bcf061 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -628,11 +628,6 @@ bool Map::contains(int x, int y) const return x >= 0 && y >= 0 && x < mWidth && y < mHeight; } -bool Map::containsPixel(int x, int y) const -{ - return contains(x / mTileWidth, y / mTileHeight); -} - MetaTile *Map::getMetaTile(int x, int y) const { return &mMetaTiles[x + y * mWidth]; -- cgit v1.2.3-70-g09d2