Changeset b8cb03f in network-game for server


Ignore:
Timestamp:
May 25, 2013, 6:53:59 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
df79cfd
Parents:
7511a2b
Message:

Changed some server-side debugging statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/server.cpp

    r7511a2b rb8cb03f  
    190190                     }
    191191
    192                      // remove the object form the server-side map
     192                     // remove the object from the server-side map
    193193                     cout << "size before: " << gameMap->getObjects()->size() << endl;
    194194                     itObjects = vctObjects->erase(itObjects);
     
    218218
    219219      if (n >= 0) {
    220          cout << "Got a message" << endl;
    221 
    222220         broadcastResponse = processMessage(clientMsg, from, mapPlayers, gameMap, unusedId, serverMsg, sock);
    223221
     
    225223         // message type
    226224         cout << "msg: " << serverMsg.buffer << endl;
    227          cout << "broadcastResponse: " << broadcastResponse << endl;
    228225         if (broadcastResponse)
    229226         {
     
    255252   DataAccess da;
    256253
     254   cout << "Received message" << endl;
    257255   cout << "MSG: type: " << clientMsg.type << endl;
    258256   cout << "MSG contents: " << clientMsg.buffer << endl;
     
    381379            mapPlayers.erase(p->id);
    382380            strcpy(serverMsg.buffer, "You have successfully logged out.");
    383             cout << "Player logged out successfuly" << endl;
    384381         }
    385382
     
    504501   }
    505502
    506    cout << "Got to the end of the switch" << endl;
    507 
    508503   return broadcastResponse;
    509504}
Note: See TracChangeset for help on using the changeset viewer.