summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-27 10:54:40 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-04-30 18:06:52 +0200
commitb9bf0acfe46222508c9910c2a2b750feafb5a0d2 (patch)
tree4b3934bf9a340a4367e470bd8d43b933aa98e11a
parentc6c14ba184fcb4f4399b8ae4ce0ae1d04f45da0a (diff)
downloadmana-b9bf0acfe46222508c9910c2a2b750feafb5a0d2.tar.gz
mana-b9bf0acfe46222508c9910c2a2b750feafb5a0d2.tar.bz2
mana-b9bf0acfe46222508c9910c2a2b750feafb5a0d2.tar.xz
mana-b9bf0acfe46222508c9910c2a2b750feafb5a0d2.zip
Removed unused variable 'handledEvents'
At some point this variable was used to avoid limiting the framerate when user input events were coming in. This is no longer relevant now that we limit the framerate globally using SDL_gfx.
-rw-r--r--src/client.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/client.cpp b/src/client.cpp
index abe3500c..f63fc5f7 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -488,8 +488,6 @@ int Client::exec()
while (mState != STATE_EXIT)
{
- bool handledEvents = false;
-
if (game)
{
// Let the game handle the events while it is active
@@ -500,8 +498,6 @@ int Client::exec()
// Handle SDL events
while (SDL_PollEvent(&event))
{
- handledEvents = true;
-
switch (event.type)
{
case SDL_QUIT: