aboutsummaryrefslogtreecommitdiff
path: root/src/game/Map.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-20 12:30:17 -0600
committermegamage <none@none>2008-12-20 12:30:17 -0600
commitdd7f4e92b2b20cfab4db96993203e8903104ea0c (patch)
tree5c23b681f074d84ebfe23cd21d302cbec710b0d7 /src/game/Map.cpp
parentf52a5a6dc722bcb54df57d6ae0a879457689de3e (diff)
parent622930c35a95227367b3817db14d20f572876189 (diff)
*Merge with 551.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Map.cpp')
-rw-r--r--src/game/Map.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp
index 2ecb350beb5..c2acd65e72e 100644
--- a/src/game/Map.cpp
+++ b/src/game/Map.cpp
@@ -438,19 +438,20 @@ Map::LoadGrid(const Cell& cell, bool no_unload)
{
ObjectGridLoader loader(*grid, this, cell);
loader.LoadN();
+ setGridObjectDataLoaded(true,cell.GridX(), cell.GridY());
// Add resurrectable corpses to world object list in grid
ObjectAccessor::Instance().AddCorpsesToGrid(GridPair(cell.GridX(),cell.GridY()),(*grid)(cell.CellX(), cell.CellY()), this);
- setGridObjectDataLoaded(true,cell.GridX(), cell.GridY());
// Not sure if this is the reason that far sight cause crash
// Seems crash happens when trying to delete a far sight dynobj from an unopened grid
ResetGridExpiry(*getNGrid(cell.GridX(), cell.GridY()), 1.0f);
grid->SetGridState(GRID_STATE_ACTIVE);
+
if(no_unload)
getNGrid(cell.GridX(), cell.GridY())->setUnloadFlag(false);
}
- LoadVMap(63-cell.GridX(),63-cell.GridY());
+ //LoadVMap(63-cell.GridX(),63-cell.GridY());
}
bool Map::Add(Player *player)