Core/Maps: Move terrain data handling out of Map class

Port From (https://github.com/TrinityCore/TrinityCore/commit/16a06346aea16ffd6ee84081cedfdb0c75ac0b38)
This commit is contained in:
hondacrx
2022-07-24 16:31:00 -04:00
parent c4344fbf66
commit 3cd58e4a17
25 changed files with 1035 additions and 960 deletions
+3
View File
@@ -40,7 +40,10 @@ namespace Game.Maps
public LoadResult LoadData(string filename)
{
// Unload old data if exist
UnloadData();
// Not return error if file not found
if (!File.Exists(filename))
return LoadResult.FileNotFound;