mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +00:00
accidentally undid a change
This commit is contained in:
parent
916f141c48
commit
db575c577b
@ -2025,9 +2025,9 @@ public void OnClientDisconnect(int client)
|
||||
|
||||
public Action Shavit_OnStart(int client)
|
||||
{
|
||||
float fSpeed = Shavit_GetStyleSettingFloat(Shavit_GetBhopStyle(client), "speed");
|
||||
int iMaxPreFrames = RoundToFloor(gCV_PlaybackPreRunTime.FloatValue * gF_Tickrate / Shavit_GetStyleSettingFloat(Shavit_GetBhopStyle(client), "speed"));
|
||||
|
||||
gI_PlayerPrerunFrames[client] = gA_PlayerFrames[client].Length - RoundToFloor(gCV_PlaybackPreRunTime.FloatValue * gF_Tickrate / fSpeed);
|
||||
gI_PlayerPrerunFrames[client] = gA_PlayerFrames[client].Length - iMaxPreFrames;
|
||||
if(gI_PlayerPrerunFrames[client] < 0)
|
||||
{
|
||||
gI_PlayerPrerunFrames[client] = 0;
|
||||
@ -2044,7 +2044,7 @@ public Action Shavit_OnStart(int client)
|
||||
}
|
||||
else
|
||||
{
|
||||
if(gA_PlayerFrames[client].Length >= RoundToFloor(gCV_PlaybackPreRunTime.FloatValue * gF_Tickrate / fSpeed))
|
||||
if(gA_PlayerFrames[client].Length >= iMaxPreFrames)
|
||||
{
|
||||
gA_PlayerFrames[client].Erase(0);
|
||||
gI_PlayerFrames[client]--;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user