Permalink
Browse files

Fixed issue where the player stops walking.

  • Loading branch information...
1 parent 37c4ff1 commit 91dd615dac22bf465267e5e3ce145a8da81541d8 @bjorn bjorn committed Jan 15, 2007
Showing with 13 additions and 7 deletions.
  1. +6 −1 ChangeLog
  2. +2 −1 src/gui/menuwindow.cpp
  3. +3 −3 src/gui/updatewindow.cpp
  4. +1 −1 src/gui/viewport.cpp
  5. +1 −1 src/gui/viewport.h
View
7 ChangeLog
@@ -1,4 +1,9 @@
-2007-01-15 Eugenio Favalli <elvenprogrammer@gmail.com>
+2007-01-15 Bjørn Lindeijer <bjorn@lindeijer.nl>
+
+ * src/gui/viewport.cpp, src/gui/viewport.h: Fixed issue where the
+ player stops walking.
+
+2007-01-15 Eugenio Favalli <elvenprogrammer@gmail.com>
* data/help/header.txt, NEWS, README: Updated release date.
View
3 src/gui/menuwindow.cpp
@@ -58,7 +58,8 @@ MenuWindow::MenuWindow():
};
int x = 0, y = 3, h = 0;
- for (const char **curBtn = buttonNames; *curBtn; curBtn++) {
+ for (const char **curBtn = buttonNames; *curBtn; curBtn++)
+ {
gcn::Button *btn = new Button(*curBtn, *curBtn, &listener);
btn->setPosition(x, y);
add(btn);
View
6 src/gui/updatewindow.cpp
@@ -138,7 +138,7 @@ void UpdaterWindow::action(const gcn::ActionEvent &event)
if (event.getId() == "cancel")
{
// Register the user cancel
- mUserCancel=true;
+ mUserCancel = true;
// Skip the updating process
if (mDownloadStatus == UPDATE_COMPLETE)
{
@@ -372,13 +372,13 @@ void UpdaterWindow::logic()
case UPDATE_ERROR:
if (mThread)
{
- if(mUserCancel){
+ if (mUserCancel) {
// Kill the thread, because user has canceled
SDL_KillThread(mThread);
// Set the flag to false again
mUserCancel = false;
}
- else{
+ else {
SDL_WaitThread(mThread, NULL);
}
mThread = NULL;
View
2 src/gui/viewport.cpp
@@ -348,7 +348,7 @@ Viewport::mousePressed(gcn::MouseEvent &event)
}
void
-Viewport::mouseMoved(gcn::MouseEvent &event)
+Viewport::mouseDragged(gcn::MouseEvent &event)
{
if (!mMap || !player_node)
return;
View
2 src/gui/viewport.h
@@ -92,7 +92,7 @@ class Viewport : public WindowContainer, public gcn::MouseListener,
* Handles mouse move on map
*/
void
- mouseMoved(gcn::MouseEvent &event);
+ mouseDragged(gcn::MouseEvent &event);
/**
* Handles mouse button release on map.

0 comments on commit 91dd615

Please sign in to comment.