Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 5, 2011, 4:02:40 PM (13 years ago)
Author:
scheusso
Message:

fixing possible bug with packet ordering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/network/FunctionCallManager.cc

    r7801 r8403  
    3131#include "core/GameMode.h"
    3232#include "GamestateHandler.h"
     33#include "Host.h"
     34#include "util/OrxAssert.h"
    3335
    3436namespace orxonox {
     
    175177  while( it!=FunctionCallManager::sIncomingFunctionCallBuffer_.end() )
    176178  {
    177     if( it->first.execute() )
     179    OrxAssert( Host::getActiveInstance(), "No Host class existing" );
     180    if( it->second.first <= Host::getActiveInstance()->getLastReceivedGamestateID(it->second.second) && it->first.execute() )
    178181      FunctionCallManager::sIncomingFunctionCallBuffer_.erase(it);
    179182    else
Note: See TracChangeset for help on using the changeset viewer.