summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-07-11 09:05:04 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-07-11 09:05:04 +0000
commit522856443dc43fc8b324d535915d9c1e165ab0e4 (patch)
tree3fc4dd64e48be5bdc7b0d9f30f1f50dbfd706481
parent0afaba4f311960be968a76bc07b28c24f4480579 (diff)
downloadmana-client-522856443dc43fc8b324d535915d9c1e165ab0e4.tar.gz
mana-client-522856443dc43fc8b324d535915d9c1e165ab0e4.tar.bz2
mana-client-522856443dc43fc8b324d535915d9c1e165ab0e4.tar.xz
mana-client-522856443dc43fc8b324d535915d9c1e165ab0e4.zip
Updating win32.txt about not using old stable Dev-C++ and committed patch by
Greybeard
-rw-r--r--docs/INSTALL/win32.txt8
-rw-r--r--src/game.cpp7
-rw-r--r--src/gui/buddywindow.cpp2
3 files changed, 11 insertions, 6 deletions
diff --git a/docs/INSTALL/win32.txt b/docs/INSTALL/win32.txt
index 8469321a..59f1e98e 100644
--- a/docs/INSTALL/win32.txt
+++ b/docs/INSTALL/win32.txt
@@ -36,12 +36,12 @@ Besides a C++ compiler, TMW depends on the following libraries:
2. Installing Dev-C++
=====================
-I recommend that you get the latest beta version, which is 4.9.9.2 at the time
-of writing. Though this tutorial is written for and tested with that, it may
-also apply to the latest stable version. Get Dev-C++ here:
+This tutorial is written and tested with the latest beta version, which is
+4.9.9.2 at the time of writing. You'll probably run into problems when you try
+the old stable version, so don't do that. Get Dev-C++ here:
http://www.bloodshed.net/
-
+
After you fetched it simply run and install.
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;
}
}
diff --git a/src/gui/buddywindow.cpp b/src/gui/buddywindow.cpp
index f559d625..f587e020 100644
--- a/src/gui/buddywindow.cpp
+++ b/src/gui/buddywindow.cpp
@@ -34,7 +34,7 @@ BuddyWindow::BuddyWindow():
setContentSize(124, 202);
listbox = new gcn::ListBox();
- listbox->setListModel(dynamic_cast<ListModel*>(this));
+ listbox->setListModel(this);
scrollArea = new ScrollArea(listbox);
scrollArea->setDimension(gcn::Rectangle(