summaryrefslogtreecommitdiffstats
path: root/pacman-c++/server.cpp
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-05-02 20:42:37 +0200
committermanuel <manuel@mausz.at>2011-05-02 20:42:37 +0200
commit0c4d6493ce9d1215c10d5f2942d373c4f37204b5 (patch)
tree5bd36abfe2ecb65d2c453ff88359cdda561f094b /pacman-c++/server.cpp
parent6ca702032d6844e211c67f18cf066e34fbbaf9d0 (diff)
downloadfoop-0c4d6493ce9d1215c10d5f2942d373c4f37204b5.tar.gz
foop-0c4d6493ce9d1215c10d5f2942d373c4f37204b5.tar.bz2
foop-0c4d6493ce9d1215c10d5f2942d373c4f37204b5.zip
add eating overlay
Diffstat (limited to 'pacman-c++/server.cpp')
-rw-r--r--pacman-c++/server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/pacman-c++/server.cpp b/pacman-c++/server.cpp
index caf2fa5..962d1bf 100644
--- a/pacman-c++/server.cpp
+++ b/pacman-c++/server.cpp
@@ -22,7 +22,7 @@ Server::Server(QWidget *parent)
22bool Server::run() 22bool Server::run()
23{ 23{
24 /* create eating order list first - this can also be created dynamically per round (theoretically) */ 24 /* create eating order list first - this can also be created dynamically per round (theoretically) */
25 for(unsigned i = 0; i < m_maxplayers; ++i) 25 for(unsigned int i = 0; i < m_maxplayers; ++i)
26 m_eatingorder.append(Color::order[i]); 26 m_eatingorder.append(Color::order[i]);
27 m_eatingorder.append(Color::order[0]); 27 m_eatingorder.append(Color::order[0]);
28 28
@@ -406,7 +406,7 @@ void Server::sendUpdate(Transmission::map_t map, bool firstPacket)
406 m_updatepacket.add_field(map[x][y]); 406 m_updatepacket.add_field(map[x][y]);
407 } 407 }
408 408
409 for(unsigned i = 0; i < m_maxplayers; ++i) 409 for(unsigned int i = 0; i < m_maxplayers; ++i)
410 { 410 {
411 m_updatepacket.add_round_points(m_actors.value(Color::order[i])->getRoundPoints()); 411 m_updatepacket.add_round_points(m_actors.value(Color::order[i])->getRoundPoints());
412 m_updatepacket.add_game_points(m_actors.value(Color::order[i])->getGamePoints()); 412 m_updatepacket.add_game_points(m_actors.value(Color::order[i])->getGamePoints());