Core/Map: Change all foreach loops over objects in maps to for loops, Fixes Collection was modified enumeration operation may not execute

This commit is contained in:
hondacrx
2021-01-03 14:58:09 -05:00
parent f929746c3d
commit d605ebca38
6 changed files with 320 additions and 210 deletions
+2 -2
View File
@@ -248,8 +248,8 @@ namespace Game.Entities
{
GridCoord p = GridDefines.ComputeGridCoord(x, y);
uint gx = 63 - p.X_coord;
uint gy = 63 - p.Y_coord;
uint gx = (MapConst.MaxGrids - 1) - p.X_coord;
uint gy = (MapConst.MaxGrids - 1) - p.Y_coord;
return Map.ExistMap(mapid, gx, gy) && Map.ExistVMap(mapid, gx, gy);
}