Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 15, 2008, 5:47:22 PM (17 years ago)
Author:
scheusso
Message:

some minor bugfix in something we don't use yet (packetgenerator::command)

Location:
code/branches/merge/src/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/merge/src/network/GameStateManager.cc

    r1282 r1294  
    427427  void GameStateManager::ackGameState(int clientID, int gamestateID) {
    428428    ClientInformation *temp = head_->findClient(clientID);
     429    if(!temp)
     430      return;
    429431    int curid = temp->getGamestateID();
    430432    COUT(4) << "acking gamestate " << gamestateID << " for clientid: " << clientID << " curid: " << curid << std::endl;
  • code/branches/merge/src/network/PacketGenerator.cc

    r1264 r1294  
    6464  ENetPacket* command( int dataLength, void *data, int reliable = ENET_PACKET_FLAG_RELIABLE )
    6565  {
    66     void *stream = new char[dataLength + 2*sizeof(int)];
     66    unsigned char *stream = new unsigned char[dataLength + 2*sizeof(int)];
    6767    if(!stream)
    6868      return NULL;
Note: See TracChangeset for help on using the changeset viewer.