Changeset 1361 for code/branches/merge/src/network/ClientInformation.cc
- Timestamp:
- May 22, 2008, 2:09:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/merge/src/network/ClientInformation.cc
r1355 r1361 51 51 preve=0; 52 52 nexte=0; 53 partialGamestateID_=GAMESTATEID_INITIAL-1;54 53 this->head_=false; 55 54 synched_=false; … … 60 59 preve=0; 61 60 nexte=0; 62 partialGamestateID_=GAMESTATEID_INITIAL-1;63 61 this->head_=head; 64 62 synched_=false; … … 161 159 return true; 162 160 } 163 164 bool ClientInformation::setPartialGamestateID(int id){165 boost::recursive_mutex::scoped_lock lock(mutex_);166 if(!this)167 return false;168 partialGamestateID_=id;169 return true;170 }171 161 172 162 int ClientInformation::getID() { … … 213 203 if(this) 214 204 return gamestateID_; 215 else216 return -1;217 }218 219 int ClientInformation::getPartialGamestateID() {220 boost::recursive_mutex::scoped_lock lock(mutex_);221 if(this)222 return partialGamestateID_;223 205 else 224 206 return -1;
Note: See TracChangeset
for help on using the changeset viewer.