Fix negative block game speed values (#8389)
This commit is contained in:
committed by
GitHub
parent
98b9f747a6
commit
ecede9f91a
@@ -355,7 +355,8 @@ namespace Content.Server.Arcade.Components
|
|||||||
{
|
{
|
||||||
_accumulatedFieldFrameTime += frameTime;
|
_accumulatedFieldFrameTime += frameTime;
|
||||||
|
|
||||||
var checkTime = Speed;
|
// Speed goes negative sometimes. uhhhh max() it I guess!!!
|
||||||
|
var checkTime = Math.Max(0.03f, Speed);
|
||||||
|
|
||||||
while (_accumulatedFieldFrameTime >= checkTime)
|
while (_accumulatedFieldFrameTime >= checkTime)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user