actual round time (#90398)

## About The Pull Request

Use actual time since round start in `ROUND_TIME` macro

## Why It's Good For The Game

no bugs good

## Changelog

🆑
fix: `round_time` in stat panel and ESC menu will show actual time since
the round start, not the world time
/🆑
This commit is contained in:
Gaxeer
2025-04-29 17:11:39 -06:00
committed by Shadow-Quill
parent 25779e6672
commit 1ad7a1f430
+1 -1
View File
@@ -2,7 +2,7 @@
#define MIDNIGHT_ROLLOVER 864000
///displays the current time into the round, with a lot of extra code just there for ensuring it looks okay after an entire day passes
#define ROUND_TIME(...) ( "[world.time - SSticker.round_start_time > MIDNIGHT_ROLLOVER ? "[round((world.time - SSticker.round_start_time)/MIDNIGHT_ROLLOVER)]:[gameTimestamp()]" : gameTimestamp()]" )
#define ROUND_TIME(...) ( "[STATION_TIME_PASSED() > MIDNIGHT_ROLLOVER ? "[round(STATION_TIME_PASSED()/MIDNIGHT_ROLLOVER)]:[gameTimestamp(wtime = STATION_TIME_PASSED())]" : gameTimestamp(wtime = STATION_TIME_PASSED())]" )
///Returns the time that has passed since the game started
#define STATION_TIME_PASSED(...) (world.time - SSticker.round_start_time)