aboutsummaryrefslogtreecommitdiff
path: root/src/game/Map.cpp
diff options
context:
space:
mode:
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);