- Timestamp:
- Feb 18, 2013, 7:58:06 PM (12 years ago)
- Branches:
- master
- Children:
- 8f85180
- Parents:
- f401cac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/server.cpp
rf401cac r66906aa 124 124 set_nonblock(sock); 125 125 126 /* 126 127 Player testP; 127 128 clock_gettime(CLOCK_REALTIME, &testP.timeLastUpdated); … … 137 138 138 139 cout << "Loc after: (" << testP.pos.x << ", " << testP.pos.y << ")" << endl; 139 140 /* 140 */ 141 141 142 bool broadcastResponse; 142 143 while (true) { … … 160 161 161 162 map<unsigned int, Player>::iterator it; 162 163 163 for (it = mapPlayers.begin(); it != mapPlayers.end(); it++) 164 164 { … … 175 175 } 176 176 177 // update player positions 178 map<unsigned int, Player>::iterator it; 179 for (it = mapPlayers.begin(); it != mapPlayers.end(); it++) 180 { 181 it->second.move(); 182 } 183 177 184 broadcastPlayerPositions(mapPlayers, sock); 178 185 } 179 186 } 180 */181 187 182 188 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.