Cleaned up the flipping logic a bit, overridable MapEntity.FlipX method

This commit is contained in:
Regalis
2016-09-30 19:48:56 +03:00
parent 0da9f58325
commit 8e8a0e57f0
6 changed files with 47 additions and 73 deletions
+2 -3
View File
@@ -108,7 +108,7 @@ namespace Barotrauma
{
return Vector2.Distance(position, WorldPosition) < 50.0f;
}
public override void Draw(SpriteBatch spriteBatch, bool editing, bool back = true)
{
if (!editing || wallVertices == null) return;
@@ -212,8 +212,7 @@ namespace Barotrauma
}
return editingHUD;
}
private bool Reload(GUIButton button, object obj)
{
var pathBox = obj as GUITextBox;