mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Add centiseconds to timer overlays
This adds centiseconds to the in-game timer, as well as the time trial timer. This is to aid speedrun moderators in determining when exactly a run was completed, which they can't easily do if the timer only has a precision up to a second.
This commit is contained in:
@@ -1724,8 +1724,10 @@ void gamerender(void)
|
||||
|
||||
if (graphics.fademode==0 && !game.intimetrial && !game.isingamecompletescreen() && (!game.swnmode || game.swngame != 1) && game.showingametimer)
|
||||
{
|
||||
char buffer[SCREEN_WIDTH_TILES + 1]; /* ASCII only */
|
||||
graphics.bprint(6, 6, "TIME:", 255,255,255);
|
||||
graphics.bprint(46, 6, game.timestring(), 196, 196, 196);
|
||||
game.timestringcenti(buffer, sizeof(buffer));
|
||||
graphics.bprint(46, 6, buffer, 196, 196, 196);
|
||||
}
|
||||
|
||||
if(map.extrarow==0 || (map.custommode && map.roomname[0] != '\0'))
|
||||
@@ -1932,6 +1934,9 @@ void gamerender(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
char buffer[SCREEN_WIDTH_TILES + 1]; /* ASCII only */
|
||||
game.timestringcenti(buffer, sizeof(buffer));
|
||||
|
||||
//Draw OSD stuff
|
||||
graphics.bprint(6, 18, "TIME :", 255,255,255);
|
||||
graphics.bprint(6, 30, "DEATH:", 255, 255, 255);
|
||||
@@ -1939,11 +1944,11 @@ void gamerender(void)
|
||||
|
||||
if(game.timetrialparlost)
|
||||
{
|
||||
graphics.bprint(56, 18, game.timestring(), 196, 80, 80);
|
||||
graphics.bprint(56, 18, buffer, 196, 80, 80);
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.bprint(56, 18, game.timestring(), 196, 196, 196);
|
||||
graphics.bprint(56, 18, buffer, 196, 196, 196);
|
||||
}
|
||||
if(game.deathcounts>0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user