| 246 | } |
| 247 | |
| 248 | void StdClientProcessList::clientCatchup( GameConnection * connection ) |
| 249 | { |
| 250 | SimObjectPtr<GameBase> control = connection->getControlObject(); |
| 251 | if ( control ) |
| 252 | { |
| 253 | Move * movePtr; |
| 254 | U32 numMoves; |
| 255 | U32 m = 0; |
| 256 | connection->mMoveList->getMoves( &movePtr, &numMoves ); |
| 257 | |
| 258 | #ifdef TORQUE_DEBUG_NET_MOVES |
| 259 | Con::printf("client catching up... (%i)", numMoves); |
| 260 | #endif |
| 261 | |
| 262 | preTickSignal().trigger(); |
| 263 | |
| 264 | if ( control->isTicking() ) |
| 265 | for ( m = 0; m < numMoves; m++ ) |
| 266 | control->processTick( movePtr++ ); |
| 267 | |
| 268 | connection->mMoveList->clearMoves( m ); |
| 269 | } |
| 270 | |
| 271 | #ifdef TORQUE_DEBUG_NET_MOVES |
| 272 | Con::printf("---------"); |
| 273 | #endif |
| 274 | } |
| 275 | |
| 276 | //-------------------------------------------------------------------------- |
| 277 | // ServerProcessList |
no test coverage detected