Changeset 2800 for code/branches/gui/src/network/Server.cc
- Timestamp:
- Mar 19, 2009, 10:34:54 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/network/Server.cc
r2773 r2800 51 51 #include "ClientInformation.h" 52 52 #include "util/Sleep.h" 53 #include "core/Clock.h" 53 54 #include "core/ConsoleCommand.h" 54 55 #include "core/CoreIncludes.h" … … 149 150 * @param time time since last tick 150 151 */ 151 void Server:: tick(floattime) {152 void Server::update(const Clock& time) { 152 153 processQueue(); 153 154 //this steers our network frequency 154 timeSinceLastUpdate_+=time ;155 timeSinceLastUpdate_+=time.getDeltaTime(); 155 156 if(timeSinceLastUpdate_>=NETWORK_PERIOD){ 156 157 timeSinceLastUpdate_ -= static_cast<unsigned int>( timeSinceLastUpdate_ / NETWORK_PERIOD ) * NETWORK_PERIOD;
Note: See TracChangeset
for help on using the changeset viewer.