diff options
author | megamage <none@none> | 2009-05-13 18:24:35 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-13 18:24:35 -0500 |
commit | 88107fa1d67441afe81a92d37a681c47555c8827 (patch) | |
tree | a5b8dd0cd47117549463fc914a16a2a6bc3269a7 /src/game/Map.cpp | |
parent | 25e5c99dec793dfcc45a41873af1760392ee8844 (diff) |
[7811] do not reload already loaded map coordinats at runtime. Author: Ambal
--HG--
branch : trunk
Diffstat (limited to 'src/game/Map.cpp')
-rw-r--r-- | src/game/Map.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp index 3280970750b..140904bfb19 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -120,7 +120,7 @@ void Map::LoadVMap(int gx,int gy) } } -void Map::LoadMap(int gx,int gy) +void Map::LoadMap(int gx,int gy, bool reload) { if( i_InstanceId != 0 ) { @@ -138,6 +138,9 @@ void Map::LoadMap(int gx,int gy) return; } + if(GridMaps[gx][gy] && !reload) + return; + //map already load, delete it before reloading (Is it necessary? Do we really need the ability the reload maps during runtime?) if(GridMaps[gx][gy]) { |