From fa555b6077e7cc7ab28c2ec07be1f5fb8a89125c Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 14 Jul 2005 12:54:59 +0000 Subject: Made attacking/aiming easier: Shift+Click = Don't walk, only interact. --- src/game.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 883fdcd5..178bfb87 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -422,10 +422,18 @@ void do_input() // Mouse button left if (event.button.button == SDL_BUTTON_LEFT) { + // Don't move when shift is pressed + // XXX Is this too hackish? I'm not sure if making the Gui + // class a KeyListener is a good idea and works as expected + // at all... + if (keys[SDLK_LSHIFT]) { + used = true; + } + // Check for default actions for NPC/Monster/Players Being *target = findNode(mx, my); unsigned int floorItemId = find_floor_item_by_cor(mx, my); - + if (target) { // NPC default: talk -- cgit v1.2.3-70-g09d2