Changeset d6b5f74 in network-game for client/Client/main.cpp


Ignore:
Timestamp:
Jan 29, 2014, 1:34:21 AM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
64a1f4e
Parents:
6f64166
Message:

Prior deletion of client-side SCORE message processing reverted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/Client/main.cpp

    r6f64166 rd6b5f74  
    825825         switch(msg.type)
    826826         {
     827            case MSG_TYPE_SCORE:
     828            {
     829               cout << "Received SCORE message!" << endl;
     830
     831               int blueScore;
     832               memcpy(&blueScore, msg.buffer, 4);
     833               cout << "blue score: " << blueScore << endl;
     834               game->setBlueScore(blueScore);
     835
     836               int redScore;
     837               memcpy(&redScore, msg.buffer+4, 4);
     838               cout << "red score: " << redScore << endl;
     839               game->setRedScore(redScore);
     840
     841               cout << "Processed SCORE message!" << endl;
     842 
     843               break;
     844            }
    827845            case MSG_TYPE_FINISH_GAME:
    828846            {
Note: See TracChangeset for help on using the changeset viewer.