Browse Source

Garrison: Disable split buttons when visiting ally

Sandy Carter 10 years ago
parent
commit
c02700853a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      client/widgets/CGarrisonInt.cpp

+ 2 - 2
client/widgets/CGarrisonInt.cpp

@@ -272,7 +272,7 @@ void CGarrisonSlot::clickLeft(tribool down, bool previousState)
 				if(creature)
 				{
 					for(auto & elem : owner->splitButtons)
-						elem->block(false);
+						elem->block(!our());
 				}
 			}
 			redraw();
@@ -455,7 +455,7 @@ void CGarrisonInt::selectSlot(CGarrisonSlot *slot)
 
 		highlighted = slot;
 		for (auto button : splitButtons)
-			button->block(highlighted == nullptr);
+			button->block(highlighted == nullptr || !slot->our());
 
 		if (highlighted)
 			highlighted->setHighlight(true);