From 4d0d62e3642bf3538613e98a94e26f0830635f38 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Sat, 26 Jan 2013 14:39:11 -0200 Subject: [PATCH] Fix #244 --- modules/game_interface/gameinterface.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/game_interface/gameinterface.lua b/modules/game_interface/gameinterface.lua index 64607b1a..efd52e94 100644 --- a/modules/game_interface/gameinterface.lua +++ b/modules/game_interface/gameinterface.lua @@ -504,7 +504,7 @@ function processMouseAction(menuPosition, mouseButton, autoWalkPos, lookThing, u return true end return true - elseif creatureThing and keyboardModifiers == KeyboardAltModifier and (mouseButton == MouseLeftButton or mouseButton == MouseRightButton) then + elseif creatureThing and g_keyboard.isAltPressed() and (mouseButton == MouseLeftButton or mouseButton == MouseRightButton) then g_game.attack(creatureThing) return true end @@ -541,7 +541,7 @@ function processMouseAction(menuPosition, mouseButton, autoWalkPos, lookThing, u elseif useThing and keyboardModifiers == KeyboardCtrlModifier and (mouseButton == MouseLeftButton or mouseButton == MouseRightButton) then createThingMenu(menuPosition, lookThing, useThing, creatureThing) return true - elseif creatureThing and keyboardModifiers == KeyboardAltModifier and (mouseButton == MouseLeftButton or mouseButton == MouseRightButton) then + elseif creatureThing and g_keyboard.isAltPressed() and (mouseButton == MouseLeftButton or mouseButton == MouseRightButton) then g_game.attack(creatureThing) return true end