mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7811] do not reload already loaded map coordinats at runtime.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
This commit is contained in:
parent
2aff48cc5d
commit
a4eab7e9f2
3 changed files with 6 additions and 3 deletions
|
|
@ -117,7 +117,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 )
|
||||
{
|
||||
|
|
@ -135,6 +135,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])
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue