diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-07-11 09:05:04 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-07-11 09:05:04 +0000 |
commit | 522856443dc43fc8b324d535915d9c1e165ab0e4 (patch) | |
tree | 3fc4dd64e48be5bdc7b0d9f30f1f50dbfd706481 /src/game.cpp | |
parent | 0afaba4f311960be968a76bc07b28c24f4480579 (diff) | |
download | mana-522856443dc43fc8b324d535915d9c1e165ab0e4.tar.gz mana-522856443dc43fc8b324d535915d9c1e165ab0e4.tar.bz2 mana-522856443dc43fc8b324d535915d9c1e165ab0e4.tar.xz mana-522856443dc43fc8b324d535915d9c1e165ab0e4.zip |
Updating win32.txt about not using old stable Dev-C++ and committed patch by
Greybeard
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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; } } |