solarus-games / solarus

This repository was moved to GitLab: https://gitlab.com/solarus-games/solarus
http://www.solarus-games.org
Other
710 stars 133 forks source link

Do not restart hero with item:on_using() #1082

Open Diarandor opened 6 years ago

Diarandor commented 6 years ago

Sometimes we use the command of an item when the item cannot be used; in these cases nothing should happen. However, the engine restarts the hero, which is annoying and cannot be directly avoided in a clean way.

The engine should not automatically restart the hero (animation, frame, etc) when item:on_using() is called.