Skip to content

Commit

Permalink
Fix drop bug, and debug typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Shoes01 committed Apr 21, 2019
1 parent 324ca59 commit 2a82ca9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion processors/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def process(self):
dijkstra_map = self.world.map.dijkstra_map
key = self.world.key
key_char = None
mouse_pose = self.world.mouse_pos
mouse_pos = self.world.mouse_pos

con_obj = self._consoles['con'] # type: (console, x, y, w, h)
map_obj = self._consoles['map']
Expand Down
2 changes: 1 addition & 1 deletion processors/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def process(self):
if state == 'Game' and eng.energy == 0:
action = generic_move_keys(key_char, key_scancode)

if key_char == 'd' and not key.mod:
if key_char == 'd' and not key.mod & libtcod.event.KMOD_CTRL:
action = {'drop': True}
if key_char == 'e':
action = {'consume': True}
Expand Down

0 comments on commit 2a82ca9

Please sign in to comment.