summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-22 19:26:32 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-22 19:26:32 +0000
commitbfedebb8069e4613c96a53151e72785ea7352765 (patch)
treeb0be95e79eb9f1066c2d16c39c16d370eab0b113 /src/game.cpp
parentfafb16bfcbdafa78ca6b587090838cf9752313e5 (diff)
downloadmana-bfedebb8069e4613c96a53151e72785ea7352765.tar.gz
mana-bfedebb8069e4613c96a53151e72785ea7352765.tar.bz2
mana-bfedebb8069e4613c96a53151e72785ea7352765.tar.xz
mana-bfedebb8069e4613c96a53151e72785ea7352765.zip
Make dispatchMessages actually handle more than one message per call.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp
index dcd7b9d9..edc1789f 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -369,10 +369,8 @@ void game(Network *network)
}
// Handle network stuff
- while(network->messageReady())
- network->dispatchMessages();
-
network->flush();
+ network->dispatchMessages();
}
do_exit(network);