(svn r2755) Fix: Fix a desync issue with autoreplace

This commit is contained in:
ludde
2005-07-29 21:55:49 +00:00
parent 3a162799fd
commit bb1e1f2b5f
3 changed files with 10 additions and 10 deletions

View File

@@ -1499,20 +1499,13 @@ void NetworkHandleCommandQueue(NetworkClientState *cs) {
}
// This is called every tick if this is a _network_server
void NetworkServer_Tick(void)
void NetworkServer_Tick(bool send_frame)
{
NetworkClientState *cs;
bool send_frame = false;
#ifndef ENABLE_NETWORK_SYNC_EVERY_FRAME
bool send_sync = false;
#endif
// Update max-frame-counter
if (_frame_counter > _frame_counter_max) {
_frame_counter_max = _frame_counter + _network_frame_freq;
send_frame = true;
}
#ifndef ENABLE_NETWORK_SYNC_EVERY_FRAME
if (_frame_counter >= _last_sync_frame + _network_sync_freq) {
_last_sync_frame = _frame_counter;