You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe easiest to reproduce by placing duplicate items during map generation, and trying to pick them up; whenever available, two items are picked up. The reason for this seems to be that tcod::input emits two events; one as a character, another as text:
This might also explain #54, possibly (Char event triggers, is handled by the menu handler, then the Text even triggers, which is then handled by the main input handler)
Maybe easiest to reproduce by placing duplicate items during map generation, and trying to pick them up; whenever available, two items are picked up. The reason for this seems to be that
tcod::input
emits two events; one as a character, another as text:The solution seems to be simple: extend the match patterns to include
code: Char
.The text was updated successfully, but these errors were encountered: