Changeset cd80d63 in network-game


Ignore:
Timestamp:
Dec 25, 2013, 8:49:15 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
cbc70eb
Parents:
29fdf12
Message:

Issue with players leaving, but not getting removed from games is fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/Client/main.cpp

    r29fdf12 rcd80d63  
    10781078               break;
    10791079            }
     1080            case MSG_TYPE_LEAVE_GAME:
     1081            {
     1082               cout << "Received a LEAVE_GAME message" << endl;
     1083
     1084               string gameName(msg.buffer+4);
     1085               unsigned int playerId;
     1086
     1087               memcpy(&playerId, msg.buffer, 4);
     1088               
     1089               game->removePlayer(playerId);
     1090
     1091               break;
     1092            }
    10801093            case MSG_TYPE_PLAYER_MOVE:
    10811094            {
Note: See TracChangeset for help on using the changeset viewer.