Core/Refactor: Part 4

This commit is contained in:
hondacrx
2018-05-27 15:40:06 -04:00
parent d94ad385b1
commit 2c3479c6e2
59 changed files with 159 additions and 223 deletions
-4
View File
@@ -955,7 +955,6 @@ namespace Game.Maps
public void GameObjectRelocation(GameObject go, float x, float y, float z, float orientation, bool respawnRelocationOnFail = true)
{
var integrity_check = new Cell(go.GetPositionX(), go.GetPositionY());
Cell old_cell = go.GetCurrentCell();
var new_cell = new Cell(x, y);
@@ -980,9 +979,6 @@ namespace Game.Maps
go.UpdateObjectVisibility(false);
RemoveGameObjectFromMoveList(go);
}
old_cell = go.GetCurrentCell();
integrity_check = new Cell(go.GetPositionX(), go.GetPositionY());
}
public void DynamicObjectRelocation(DynamicObject dynObj, float x, float y, float z, float orientation)
+1 -2
View File
@@ -140,8 +140,7 @@ namespace Game.Entities
if (instance == null)
return EnterState.CannotEnterUninstancedDungeon;
Difficulty targetDifficulty, requestedDifficulty;
targetDifficulty = requestedDifficulty = player.GetDifficultyID(entry);
Difficulty targetDifficulty = player.GetDifficultyID(entry);
// Get the highest available difficulty if current setting is higher than the instance allows
MapDifficultyRecord mapDiff = Global.DB2Mgr.GetDownscaledMapDifficultyData(entry.Id, ref targetDifficulty);
if (mapDiff == null)