From 522856443dc43fc8b324d535915d9c1e165ab0e4 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 11 Jul 2005 09:05:04 +0000 Subject: Updating win32.txt about not using old stable Dev-C++ and committed patch by Greybeard --- src/game.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 9e9b0da9..bde34a7c 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -623,7 +623,12 @@ void do_input() if (keys[SDLK_LCTRL]) { Being *monster = attack(x, y, player_node->direction); - if (keys[SDLK_LSHIFT]) { + if (monster == NULL && autoTarget != NULL) + { + attack(autoTarget); + } + else if (keys[SDLK_LSHIFT]) + { autoTarget = monster; } } -- cgit v1.2.3-70-g09d2