- Timestamp:
- Jun 8, 2006, 2:18:54 PM (18 years ago)
- Location:
- branches/network/src/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/network_stream.cc
r8228 r8244 538 538 //PRINTF(0)("GGGGGOOOOOOOOOOTTTTTTTT: %d\n", compLength); 539 539 packetLength = Zip::getInstance()->unZip( compBuf, compLength, buf, UDP_PACKET_SIZE ); 540 540 541 541 if ( packetLength < 4*INTSIZE ) 542 542 { -
branches/network/src/lib/network/player_stats.cc
r8238 r8244 27 27 28 28 CREATE_FACTORY(PlayerStats, CL_PLAYER_STATS); 29 SHELL_COMMAND(nick, PlayerStats, shellNick); 29 30 30 31 31 /** … … 219 219 void PlayerStats::shellNick( const std::string& newNick ) 220 220 { 221 //if ( getStats( SharedNetworkData::getInstance()->getHostID() ) )222 //getStats( SharedNetworkData::getInstance()->getHostID() )->setNickName( newNick );223 } 224 225 221 if ( getStats( SharedNetworkData::getInstance()->getHostID() ) ) 222 getStats( SharedNetworkData::getInstance()->getHostID() )->setNickName( newNick ); 223 } 224 225 -
branches/network/src/lib/network/synchronizeable.cc
r8228 r8244 175 175 176 176 bool hasPermission; 177 bool sizeChanged = false; 177 178 178 179 // now do the actual synchronization: kick all variables to write into a common buffer … … 185 186 (*it)->checkPermission( PERMISSION_ALL ) 186 187 ); 187 188 if ( ( sizeIter != stateFrom->sizeList.end() && *sizeIter != (*it)->getSize() ) || ( hasPermission && (*it)->getPriority() >= priorityTH ) || sizeIter == stateFrom->sizeList.end() ) 188 if ( sizeIter != stateFrom->sizeList.end() || *sizeIter != (*it)->getSize() ) 189 sizeChanged = true; 190 191 if ( ( hasPermission && (*it)->getPriority() >= priorityTH ) || sizeChanged ) 189 192 { 190 193 n = (*it)->writeToBuf( stateTo->data+i, stateTo->dataLength - i ); -
branches/network/src/lib/shell/some_shell_commands.cc
r7725 r8244 28 28 using namespace OrxShell; 29 29 30 30 #include "player_stats.h" 31 SHELL_COMMAND(nick, PlayerStats, shellNick)->setAlias("nick"); 31 32 32 33 #include "class_list.h"
Note: See TracChangeset
for help on using the changeset viewer.