Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 21, 2008, 5:53:09 PM (16 years ago)
Author:
scheusso
Message:
  • some adjustments in client handling (we use unsigned int as id now everywhere)
  • fixed a problem with clientinformation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/network/GamestateClient.cc

    r1944 r1990  
    4343  struct _NetworkExport GameStateItem{
    4444    packet::Gamestate *state;
    45     int id;
     45    unsigned int id;
    4646  };
    4747
     
    5656  }
    5757
    58   bool GamestateClient::ack(int gamestateID, int clientID){
     58  bool GamestateClient::ack(unsigned int gamestateID, unsigned int clientID){
    5959    return true;
    6060  }
    6161
    62   bool GamestateClient::add(packet::Gamestate *gs, int clientID){
     62  bool GamestateClient::add(packet::Gamestate *gs, unsigned int clientID){
    6363    if(tempGamestate_!=NULL){
    6464      //delete the obsolete gamestate
     
    110110
    111111  void GamestateClient::cleanup(){
    112     std::map<int, packet::Gamestate*>::iterator temp, it = gamestateMap_.begin();
     112    std::map<unsigned int, packet::Gamestate*>::iterator temp, it = gamestateMap_.begin();
    113113    while(it!=gamestateMap_.end()){
    114114      if(it->first>=last_diff_)
     
    123123
    124124  void GamestateClient::printGamestateMap(){
    125     std::map<int, packet::Gamestate*>::iterator it;
     125    std::map<unsigned int, packet::Gamestate*>::iterator it;
    126126    COUT(4) << "gamestates: ";
    127127    for(it=gamestateMap_.begin(); it!=gamestateMap_.end(); it++){
Note: See TracChangeset for help on using the changeset viewer.