Changeset 630 for code/branches/FICN/src/network
- Timestamp:
- Dec 19, 2007, 12:04:49 AM (17 years ago)
- Location:
- code/branches/FICN/src/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/GameStateManager.cc
r624 r630 114 114 // allocate additional space 115 115 if(totalsize+tempsize>memsize){ 116 retval->data = (unsigned char *)realloc((void *)retval->data, totalsize+1000); 117 memsize+=1000; 116 if(tempsize<1000){ 117 retval->data = (unsigned char *)realloc((void *)retval->data, totalsize+1000); 118 memsize+=1000; 119 } else { 120 retval->data = (unsigned char *)realloc((void *)retval->data, totalsize+1000); 121 memsize+=tempsize+1000; 122 } 118 123 } 119 124 -
code/branches/FICN/src/network/Synchronisable.cc
r599 r630 26 26 datasize=0; 27 27 objectID=idCounter++; 28 //registerAllVariables();28 //registerAllVariables(); 29 29 } 30 30 -
code/branches/FICN/src/network/Synchronisable.h
r571 r630 58 58 int getSize(); 59 59 bool updateData(syncData vars); 60 v irtual void registerAllVariables()=0;61 virtual bool create() {return true;}60 void registerAllVariables(); 61 virtual bool create()=0; 62 62 protected: 63 63 Synchronisable();
Note: See TracChangeset
for help on using the changeset viewer.