Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 17, 2010, 8:25:21 PM (14 years ago)
Author:
landauf
Message:

removed network as dependency of tools. these libraries can build in parallel again now.
moved network synchronization of setTimeFactor from TimeFactorListener to GSRoot (GSRoot inherits from TimeFactorListener now)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/tools/interfaces/ToolsInterfaceCompilation.cc

    r6417 r7172  
    3838#include "core/CoreIncludes.h"
    3939#include "core/GameMode.h"
    40 #include "network/NetworkFunction.h"
    4140
    4241namespace orxonox
     
    4544    // TimeFactorListener
    4645    //----------------------------
    47     registerStaticNetworkFunction( &TimeFactorListener::setTimeFactorInternal );
    48 
    4946    float TimeFactorListener::timefactor_s = 1.0f;
    5047
     
    5451    }
    5552
    56     /*static*/ void TimeFactorListener::setTimeFactor( float factor )
     53    /*static*/ void TimeFactorListener::setTimeFactor(float factor)
    5754    {
    58         if ( !GameMode::isStandalone() )
    59             callStaticNetworkFunction( &TimeFactorListener::setTimeFactorInternal, CLIENTID_UNKNOWN, factor );
    60         TimeFactorListener::setTimeFactorInternal(factor);
    61     }
     55        if (factor == TimeFactorListener::timefactor_s)
     56            return;
    6257
    63     /*static*/ void TimeFactorListener::setTimeFactorInternal( float factor )
    64     {
    6558        float oldFactor = TimeFactorListener::timefactor_s;
    6659        TimeFactorListener::timefactor_s = factor;
Note: See TracChangeset for help on using the changeset viewer.