diff --git a/game/marble/server/scripts/game.cs b/game/marble/server/scripts/game.cs index f7e663bc..0084cd7a 100644 --- a/game/marble/server/scripts/game.cs +++ b/game/marble/server/scripts/game.cs @@ -320,6 +320,9 @@ function pauseGame() $saveTimescale = $timescale; $timescale = $pauseTimescale; + + //Stop the Discord Timer since the actual in-game Timer isn't running. ~Connie + XBLivePresenceStopTimer(); } } } @@ -342,6 +345,11 @@ function resumeGame() $saveTimescale = 1.0; $timescale = $saveTimescale; } + + //Resume the Discord Timer if it's a Singleplayer game. ~Connie + if ($Server::ServerType $= "SinglePlayer" && $Game::Running && serverGetGameMode() $= "scrum" && ($Game::State $= "play" || $Game::State $= "go")) { + XBLivePresenceStartTimer(($Game::Duration - PlayGui.elapsedTime) / 1000); + } } function destroyGame()