From 5ca42599ef52236274938dba9bd6e113611cb734 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 19 Mar 2024 13:35:55 +1100 Subject: make timescale a server command and add a tickrate command --- source/core/StarTime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core/StarTime.cpp') diff --git a/source/core/StarTime.cpp b/source/core/StarTime.cpp index f64b850..96cbdde 100644 --- a/source/core/StarTime.cpp +++ b/source/core/StarTime.cpp @@ -147,7 +147,7 @@ void Clock::setMilliseconds(int64_t millis) { void Clock::adjustTime(double timeAdjustment) { RecursiveMutexLocker locker(m_mutex); - setTime(time() + timeAdjustment); + setTime(max(0.0, time() + timeAdjustment)); } void Clock::adjustMilliseconds(int64_t millisAdjustment) { -- cgit v1.2.3