Changeset 2556 for code/branches
- Timestamp:
- Dec 31, 2008, 9:23:28 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/network/GamestateManager.cc
r2552 r2556 55 55 namespace orxonox 56 56 { 57 GamestateManager::GamestateManager() { 58 id_=0; 57 GamestateManager::GamestateManager() : 58 reference(0), id_(0) 59 { 59 60 trafficControl_ = new TrafficControl(); 60 61 } 61 62 62 GamestateManager::~GamestateManager() { 63 GamestateManager::~GamestateManager() 64 { 63 65 delete trafficControl_; 64 66 } … … 97 99 98 100 bool GamestateManager::getSnapshot(){ 101 if ( reference != 0 ) 102 delete reference; 99 103 reference = new packet::Gamestate(); 100 104 if(!reference->collectData(++id_)){ //we have no data to send
Note: See TracChangeset
for help on using the changeset viewer.