We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fa0f82 commit 68c9d81Copy full SHA for 68c9d81
source/map_display.cpp
@@ -651,6 +651,15 @@ void MapCanvas::OnMouseActionClick(wxMouseEvent& event) {
651
if (event.ControlDown() && event.AltDown()) {
652
Tile* tile = editor.map.getTile(mouse_map_x, mouse_map_y, floor);
653
if (tile && tile->size() > 0) {
654
+ // Select visible creature
655
+ if (tile->creature && g_settings.getInteger(Config::SHOW_CREATURES)) {
656
+ CreatureBrush* brush = tile->creature->getBrush();
657
+ if (brush) {
658
+ g_gui.SelectBrush(brush, TILESET_CREATURE);
659
+ return;
660
+ }
661
662
+ // Fall back to item selection
663
Item* item = tile->getTopItem();
664
if (item && item->getRAWBrush()) {
665
g_gui.SelectBrush(item->getRAWBrush(), TILESET_RAW);
0 commit comments