Changeset 606 for code/branches/FICN/src
- Timestamp:
- Dec 17, 2007, 11:08:50 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/Server.cc
r605 r606 125 125 void Server::updateGamestate(){ 126 126 gamestates->update(); 127 std::cout << "updated gamestate, sending it" << std::endl;127 //std::cout << "updated gamestate, sending it" << std::endl; 128 128 sendGameState(); 129 std::cout << "sent gamestate" << std::endl;129 //std::cout << "sent gamestate" << std::endl; 130 130 } 131 131 … … 134 134 */ 135 135 bool Server::sendGameState(){ 136 for(ClientInformation *temp = clients; temp!=0; temp=temp->next()){136 /*for(ClientInformation *temp = clients->next(); temp!=0; temp=temp->next()){ 137 137 connection->addPacket(packet_gen.gstate(&(gamestates->popGameState(temp->getID()))),temp->getID()); 138 std::cout << "added gamestate" << std::endl; 138 139 } 140 return connection->sendPackets();*/ 139 141 return true; 140 142 }
Note: See TracChangeset
for help on using the changeset viewer.