Misc fixes / analysis issues

This commit is contained in:
hondacrx
2017-07-17 10:52:54 -04:00
parent 34263f9551
commit 8a31ccff0d
5 changed files with 12 additions and 16 deletions
+2 -3
View File
@@ -808,7 +808,7 @@ namespace Game.Maps
public void PlayerRelocation(Player player, float x, float y, float z, float orientation)
{
var oldcell = new Cell(player.GetPositionX(), player.GetPositionY());
var oldcell = player.GetCurrentCell();
var newcell = new Cell(x, y);
//! If hovering, always increase our server-side Z position
@@ -823,8 +823,7 @@ namespace Game.Maps
if (oldcell.DiffGrid(newcell) || oldcell.DiffCell(newcell))
{
Log.outDebug(LogFilter.Maps,
"Player {0} relocation grid[{1}, {2}]cell[{3}, {4}].grid[{5}, {6}]cell[{7}, {8}]",
Log.outDebug(LogFilter.Maps, "Player {0} relocation grid[{1}, {2}]cell[{3}, {4}].grid[{5}, {6}]cell[{7}, {8}]",
player.GetName(), oldcell.GetGridX(), oldcell.GetGridY(), oldcell.GetCellX(), oldcell.GetCellY(),
newcell.GetGridX(), newcell.GetGridY(), newcell.GetCellX(), newcell.GetCellY());