mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-06 18:08:26 +00:00
fixed replay hud for timescale styles
This commit is contained in:
parent
d1cf273dd8
commit
d652289814
@ -839,7 +839,7 @@ void UpdateHUD(int client)
|
||||
iSpeed = RoundToNearest(float(iSpeed) / view_as<float>(gA_StyleSettings[style][fSpeedMultiplier]));
|
||||
track = Shavit_GetReplayBotTrack(target);
|
||||
|
||||
float fReplayTime = Shavit_GetReplayTime(style, track);
|
||||
float fReplayTime = Shavit_GetReplayTime(style, track) * view_as<float>(gA_StyleSettings[style][fTimescale]);
|
||||
float fReplayLength = Shavit_GetReplayLength(style, track);
|
||||
|
||||
if(fReplayTime < 0.0 || fReplayTime > fReplayLength || !Shavit_IsReplayDataLoaded(style, track))
|
||||
@ -847,8 +847,6 @@ void UpdateHUD(int client)
|
||||
return;
|
||||
}
|
||||
|
||||
fReplayTime *= view_as<float>(gA_StyleSettings[style][fTimescale]);
|
||||
|
||||
char sReplayTime[32];
|
||||
FormatSeconds(fReplayTime, sReplayTime, 32, false);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user