mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user