Skip to content

Commit

Permalink
Worked around a Guichan exception thrown for mice with many buttons (…
Browse files Browse the repository at this point in the history
…patch by

Roel van Dijk).
  • Loading branch information
bjorn committed Nov 12, 2006
1 parent 3262d53 commit 8156774
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
beings blocking the road. This is done by allowing walking over other
beings, but at an additional cost so that it is preferable to walk
around them.
* src/game.cpp: Worked around a Guichan exception thrown for mice with
many buttons (patch by Roel van Dijk).

2006-11-09 Eugenio Favalli <elvenprogrammer@gmail.com>

Expand Down
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
0.0.21.2 (...)
- Changed to new update host (http://updates.themanaworld.org)
- Worked around a Guichan exception thrown for mice with many buttons
- Fixed money field to no longer hide below the bottom of the window
- Fixed pathfinding to allow walking through beings when they block your path

0.0.21.1 (30 October 2006)
- Reload wallpaper after loading updates
Expand Down
14 changes: 12 additions & 2 deletions src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <string>

#include <guichan/sdl/sdlinput.hpp>
#include <guichan/exception.hpp>

#include "beingmanager.h"
#include "configuration.h"
Expand Down Expand Up @@ -627,8 +628,17 @@ void Game::handleInput()
}

// Push input to GUI when not used
if (!used) {
guiInput->pushInput(event);
if (!used)
{
try
{
guiInput->pushInput(event);
}
catch (gcn::Exception e)
{
const char* err = e.getMessage().c_str();
logger->log("Warning: guichan input exception: %s", err);
}
}

} // End while
Expand Down

0 comments on commit 8156774

Please sign in to comment.