Skip to content

Commit

Permalink
Fix Rejoin Bug (#207)
Browse files Browse the repository at this point in the history
# Description

Sets the rules time CCVar to an integer, which the client seemed to be
expecting but it was a float, so joining caused an error with state
changes that only ever caused a noticeable issue when you were playing
in a round.

---

# Changelog

:cl:
- fix: Fixed rejoining the server causing most gameplay elements to not
work
  • Loading branch information
DEATHB4DEFEAT authored Sep 15, 2023
1 parent 2ea4dab commit 361d718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Shared/CCVar/CCVars.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1605,8 +1605,8 @@ public static readonly CVarDef<string>
/// <summary>
/// Time that players have to wait before rules can be accepted.
/// </summary>
public static readonly CVarDef<float> RulesWaitTime =
CVarDef.Create("rules.time", 45f, CVar.SERVER | CVar.REPLICATED);
public static readonly CVarDef<int> RulesWaitTime = // Parkstation-FixRules // Causes game to not switch state, making gameplay not playable?
CVarDef.Create("rules.time", 45, CVar.SERVER | CVar.REPLICATED);

/// <summary>
/// Don't show rules to localhost/loopback interface.
Expand Down

0 comments on commit 361d718

Please sign in to comment.