Core/VMaps: Fixes getting no area/zone info, which caused you to be dismounted.

This commit is contained in:
hondacrx
2022-06-23 15:55:45 -04:00
parent 9f77e39899
commit 0f655d09ca
7 changed files with 16 additions and 17 deletions
+2 -2
View File
@@ -391,8 +391,8 @@ namespace Game.Maps
if (m_uint16_V8 == null || m_uint16_V9 == null)
return _gridHeight;
x = MapConst.MapResolution * (32 - x / MapConst.SizeofGrids);
y = MapConst.MapResolution * (32 - y / MapConst.SizeofGrids);
x = MapConst.MapResolution * (MapConst.CenterGridId - x / MapConst.SizeofGrids);
y = MapConst.MapResolution * (MapConst.CenterGridId - y / MapConst.SizeofGrids);
int x_int = (int)x;
int y_int = (int)y;