Changeset 778d0c9 in network-game for server/server.cpp
- Timestamp:
- Dec 23, 2013, 11:32:26 PM (11 years ago)
- Branches:
- master
- Children:
- 635ad9b
- Parents:
- 3e44a59
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/server.cpp
r3e44a59 r778d0c9 380 380 381 381 // I should create an instance of the GameSummary object here and just serialize it into this message 382 memcpy(serverMsg.buffer +4, &winningTeam, 4);382 memcpy(serverMsg.buffer, &winningTeam, 4); 383 383 memcpy(serverMsg.buffer+4, &scoreBlue, 4); 384 384 memcpy(serverMsg.buffer+8, &scoreRed, 4); 385 strcpy(serverMsg.buffer+12, game->getName().c_str()); 385 386 386 387 for (it2 = playersInGame.begin(); it2 != playersInGame.end(); it2++)
Note:
See TracChangeset
for help on using the changeset viewer.