mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
srb2::music::TunesManager::resync: don't resync if server is not sending updates
Prevents "CD skipping" jumpscare.
This commit is contained in:
parent
b94f64e82f
commit
c341f38ba8
1 changed files with 8 additions and 0 deletions
|
|
@ -20,6 +20,7 @@
|
||||||
#include "music_manager.hpp"
|
#include "music_manager.hpp"
|
||||||
#include "music_tune.hpp"
|
#include "music_tune.hpp"
|
||||||
|
|
||||||
|
#include "d_clisrv.h"
|
||||||
#include "doomtype.h"
|
#include "doomtype.h"
|
||||||
#include "i_sound.h"
|
#include "i_sound.h"
|
||||||
#include "i_time.h"
|
#include "i_time.h"
|
||||||
|
|
@ -173,6 +174,13 @@ bool TuneManager::resync()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hu_stopped)
|
||||||
|
{
|
||||||
|
// The server is not sending updates. Don't resync
|
||||||
|
// because we know game logic is not moving anyway.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
long d_local = I_GetTime() - time_local_;
|
long d_local = I_GetTime() - time_local_;
|
||||||
long d_sync = detail::tic_time() - time_sync_;
|
long d_sync = detail::tic_time() - time_sync_;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue