Changeset 2908 for code/branches/questsystem5/src/network/Server.cc
- Timestamp:
- Apr 8, 2009, 12:58:47 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/network/Server.cc
r2907 r2908 51 51 #include "ClientInformation.h" 52 52 #include "util/Sleep.h" 53 #include "core/Clock.h"54 53 #include "core/ConsoleCommand.h" 55 54 #include "core/CoreIncludes.h" … … 150 149 * @param time time since last tick 151 150 */ 152 void Server:: update(const Clock&time) {151 void Server::tick(float time) { 153 152 processQueue(); 154 153 //this steers our network frequency 155 timeSinceLastUpdate_+=time .getDeltaTime();154 timeSinceLastUpdate_+=time; 156 155 if(timeSinceLastUpdate_>=NETWORK_PERIOD){ 157 156 timeSinceLastUpdate_ -= static_cast<unsigned int>( timeSinceLastUpdate_ / NETWORK_PERIOD ) * NETWORK_PERIOD;
Note: See TracChangeset
for help on using the changeset viewer.