[2.0.60] Leaving remote map view does not raise on_selected_entity_changed
Posted: Sat Jul 19, 2025 2:52 pm
What you expected:
Deselecting an entity always raises on_selected_entity_changed when it's reasonable to do so.
What happens:
It doesn't. The tooltip changes and everything
To reproduce:
1) open the map, zoom in, put the mouse cursor on something (event raises)
2) press m to leave map view (event doesn't raise) even though the entity is deselected according to the tooltip
Deselecting an entity always raises on_selected_entity_changed when it's reasonable to do so.
What happens:
It doesn't. The tooltip changes and everything
To reproduce:
Code: Select all
/c
script.on_event(defines.events.on_selected_entity_changed, function(event)
game.print(event.tick)
end)
2) press m to leave map view (event doesn't raise) even though the entity is deselected according to the tooltip