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