Changeset 7172 for code/trunk/src/orxonox/gamestates/GSRoot.cc
- Timestamp:
- Aug 17, 2010, 8:25:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gamestates/GSRoot.cc
r6417 r7172 36 36 #include "network/NetworkFunction.h" 37 37 #include "tools/Timer.h" 38 #include "tools/interfaces/TimeFactorListener.h"39 38 #include "tools/interfaces/Tickable.h" 40 39 … … 43 42 DeclareGameState(GSRoot, "root", false, false); 44 43 SetConsoleCommandShortcut(GSRoot, printObjects); 44 45 registerStaticNetworkFunction(&TimeFactorListener::setTimeFactor); 45 46 46 47 GSRoot::GSRoot(const GameStateInfo& info) … … 153 154 } 154 155 155 float GSRoot::getTimeFactor()156 void GSRoot::changedTimeFactor(float factor_new, float factor_old) 156 157 { 157 return TimeFactorListener::getTimeFactor(); 158 if (!GameMode::isStandalone()) 159 callStaticNetworkFunction(&TimeFactorListener::setTimeFactor, CLIENTID_UNKNOWN, factor_new); 158 160 } 159 161 }
Note: See TracChangeset
for help on using the changeset viewer.