aboutsummaryrefslogtreecommitdiff
path: root/Mundus/Views/Windows/SmallGameWindow.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Mundus/Views/Windows/SmallGameWindow.cs')
-rw-r--r--Mundus/Views/Windows/SmallGameWindow.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/Mundus/Views/Windows/SmallGameWindow.cs b/Mundus/Views/Windows/SmallGameWindow.cs
index d37137b..a63bfb4 100644
--- a/Mundus/Views/Windows/SmallGameWindow.cs
+++ b/Mundus/Views/Windows/SmallGameWindow.cs
@@ -581,21 +581,15 @@ namespace Mundus.Views.Windows {
}
else {
if (Inventory.GetPlayerItem(selPlace, selIndex) != null) {
- var selType = Inventory.GetPlayerItem(selPlace, selIndex).GetType();
//try to do MobFighting
- if (selType == typeof(Structure) && MobTerraforming.PlayerCanBuildAt(mapYPos, mapXPos)) {
- MobTerraforming.PlayerBuildAt(mapYPos, mapXPos, selPlace, selIndex);
-
- }
- else if (selType == typeof(Tool) && MobTerraforming.PlayerCanDestroyAt(mapYPos, mapXPos)) {
- MobTerraforming.PlayerDestroyAt(mapYPos, mapXPos, selPlace, selIndex);
- }
+ MobTerraforming.PlayerTerraformAt(mapYPos, mapXPos, selPlace, selIndex);
}
ResetSelection();
}
this.PrintScreen();
this.PrintMainMenu();
+
if (this.MapMenuIsVisible()) {
this.PrintMap();
}