Changeset 778d0c9 in network-game


Ignore:
Timestamp:
Dec 23, 2013, 11:32:26 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
635ad9b
Parents:
3e44a59
Message:

Correction in the server's creation of the FINISH_GAME message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/server.cpp

    r3e44a59 r778d0c9  
    380380
    381381                        // 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);
    383383                        memcpy(serverMsg.buffer+4, &scoreBlue, 4);
    384384                        memcpy(serverMsg.buffer+8, &scoreRed, 4);
     385                        strcpy(serverMsg.buffer+12, game->getName().c_str());
    385386
    386387                        for (it2 = playersInGame.begin(); it2 != playersInGame.end(); it2++)
Note: See TracChangeset for help on using the changeset viewer.