aboutsummaryrefslogtreecommitdiff
path: root/src/game/Map.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-20 14:10:53 -0600
committermegamage <none@none>2008-12-20 14:10:53 -0600
commitb7be6cb6da831b96ec9fae8442803f06ac3f7971 (patch)
treec5f15e5c907538d3b06b67c7fbe47be8237a1f6f /src/game/Map.cpp
parent5fd5da0123323a01731b674cc1c34410c1120d47 (diff)
*Fix build.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Map.cpp')
-rw-r--r--src/game/Map.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp
index c2acd65e72e..152a078868b 100644
--- a/src/game/Map.cpp
+++ b/src/game/Map.cpp
@@ -454,6 +454,13 @@ Map::LoadGrid(const Cell& cell, bool no_unload)
//LoadVMap(63-cell.GridX(),63-cell.GridY());
}
+void Map::LoadGrid(float x, float y)
+{
+ CellPair pair = Trinity::ComputeCellPair(x, y);
+ Cell cell(pair);
+ EnsureGridLoadedForPlayer(cell, NULL, false);
+}
+
bool Map::Add(Player *player)
{
player->GetMapRef().link(this, player);