Skip to content

Commit

Permalink
Change MaxClientRate If DesiredNetspeed Is Greater
Browse files Browse the repository at this point in the history
  • Loading branch information
Deaod committed Mar 7, 2021
1 parent 929d3f9 commit c3556f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/bbPlayer.uc
Original file line number Diff line number Diff line change
Expand Up @@ -6401,6 +6401,10 @@ event PostRender( canvas zzCanvas )

if (Player.CurrentNetspeed != zzNetspeed) {
Netspeed = int(ConsoleCommand("get ini:Engine.Engine.NetworkDevice MaxClientRate"));
if (Netspeed < Settings.DesiredNetspeed) {
ConsoleCommand("set ini:Engine.Engine.NetworkDevice MaxClientRate"@Settings.DesiredNetspeed);
Netspeed = Settings.DesiredNetspeed;
}
if (zzMinimumNetspeed > 0 && Netspeed < zzMinimumNetspeed) {
xxServerCheater("NS");
goto netspeed_end;
Expand Down

0 comments on commit c3556f6

Please sign in to comment.