mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 10:22:48 +01:00
- DrawDrivingGameOverlays MP text adjusted for NTSC/PAL
This commit is contained in:
parent
6299674125
commit
3ac05ca113
@ -555,19 +555,7 @@ void DrawDrivingGameOverlays(void)
|
|||||||
break;
|
break;
|
||||||
case GAME_CHECKPOINT:
|
case GAME_CHECKPOINT:
|
||||||
|
|
||||||
if (NumPlayers > 1)
|
if (NumPlayers == 1)
|
||||||
{
|
|
||||||
x = PrintString(G_LTXT(GTXT_Checks), gOverlayXPos, 36);
|
|
||||||
|
|
||||||
sprintf(string, "%d/5", gPlayerScore.items);
|
|
||||||
PrintString(string, x + 3, 36);
|
|
||||||
|
|
||||||
x = PrintString(G_LTXT(GTXT_Checks), gOverlayXPos, 150);
|
|
||||||
|
|
||||||
sprintf(string, "%d/5", gPlayerScore.P2items);
|
|
||||||
PrintString(string, x + 3, 150);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
table = &ScoreTables.CheckpointTable[GameLevel][gSubGameNumber][0];
|
table = &ScoreTables.CheckpointTable[GameLevel][gSubGameNumber][0];
|
||||||
x = PrintStringRightAligned(G_LTXT(GTXT_Checks), gOverlayXOppPos + 70, 16);
|
x = PrintStringRightAligned(G_LTXT(GTXT_Checks), gOverlayXOppPos + 70, 16);
|
||||||
@ -578,6 +566,18 @@ void DrawDrivingGameOverlays(void)
|
|||||||
x = PrintString(G_LTXT(GTXT_Best), gOverlayXPos, 36);
|
x = PrintString(G_LTXT(GTXT_Best), gOverlayXPos, 36);
|
||||||
PrintScoreTableTime(x + 3, 36, table->time);
|
PrintScoreTableTime(x + 3, 36, table->time);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
x = PrintString(G_LTXT(GTXT_Checks), gOverlayXPos, 36);
|
||||||
|
|
||||||
|
sprintf(string, "%d/5", gPlayerScore.items);
|
||||||
|
PrintString(string, x + 3, 36);
|
||||||
|
|
||||||
|
x = PrintString(G_LTXT(GTXT_Checks), gOverlayXPos, SCREEN_H / 2 + 22);
|
||||||
|
|
||||||
|
sprintf(string, "%d/5", gPlayerScore.P2items);
|
||||||
|
PrintString(string, x + 3, SCREEN_H / 2 + 22);
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case GAME_GATERACE:
|
case GAME_GATERACE:
|
||||||
@ -602,10 +602,10 @@ void DrawDrivingGameOverlays(void)
|
|||||||
sprintf(string, "%d / %d", gPlayerScore.items, 100);
|
sprintf(string, "%d / %d", gPlayerScore.items, 100);
|
||||||
|
|
||||||
PrintString(string, x + 3, 36);
|
PrintString(string, x + 3, 36);
|
||||||
x = PrintString(G_LTXT(GTXT_Gate), gOverlayXPos, 150);
|
x = PrintString(G_LTXT(GTXT_Gate), gOverlayXPos, SCREEN_H / 2 + 22);
|
||||||
|
|
||||||
sprintf(string, "%d / %d", gPlayerScore.P2items, 100);
|
sprintf(string, "%d / %d", gPlayerScore.P2items, 100);
|
||||||
PrintString(string, x + 3, 150);
|
PrintString(string, x + 3, SCREEN_H / 2 + 22);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GAME_TRAILBLAZER:
|
case GAME_TRAILBLAZER:
|
||||||
@ -635,13 +635,12 @@ void DrawDrivingGameOverlays(void)
|
|||||||
|
|
||||||
x = PrintString(G_LTXT(GTXT_Flags), gOverlayXPos, 132);
|
x = PrintString(G_LTXT(GTXT_Flags), gOverlayXPos, 132);
|
||||||
sprintf(string, "%d", gPlayerScore.P2items);
|
sprintf(string, "%d", gPlayerScore.P2items);
|
||||||
PrintString(string, x + 3, 132);
|
PrintString(string, x + 3, SCREEN_H / 2 + 4);
|
||||||
break;
|
break;
|
||||||
case GAME_SECRET:
|
case GAME_SECRET:
|
||||||
y = 36;
|
y = 36;
|
||||||
|
|
||||||
i = 0;
|
for (i = 0; i < gNumRaceTrackLaps; i++)
|
||||||
do
|
|
||||||
{
|
{
|
||||||
sprintf(string, "%s %d:", G_LTXT(GTXT_Lap), i+1);
|
sprintf(string, "%s %d:", G_LTXT(GTXT_Lap), i+1);
|
||||||
|
|
||||||
@ -649,16 +648,14 @@ void DrawDrivingGameOverlays(void)
|
|||||||
PrintScoreTableTime(x + 3, y, gLapTimes[0][i]);
|
PrintScoreTableTime(x + 3, y, gLapTimes[0][i]);
|
||||||
|
|
||||||
y += 16;
|
y += 16;
|
||||||
i++;
|
}
|
||||||
} while (i < gNumRaceTrackLaps);
|
|
||||||
|
|
||||||
|
|
||||||
if (NumPlayers > 1)
|
if (NumPlayers > 1)
|
||||||
{
|
{
|
||||||
y = 150;
|
y = SCREEN_H / 2 + 22;
|
||||||
|
|
||||||
i = 0;
|
for(i = 0; i < gNumRaceTrackLaps; i++)
|
||||||
do
|
|
||||||
{
|
{
|
||||||
sprintf(string, "%s %d:", G_LTXT(GTXT_Lap), i+1);
|
sprintf(string, "%s %d:", G_LTXT(GTXT_Lap), i+1);
|
||||||
|
|
||||||
@ -666,8 +663,7 @@ void DrawDrivingGameOverlays(void)
|
|||||||
PrintScoreTableTime(x + 3, y, gLapTimes[1][i]);
|
PrintScoreTableTime(x + 3, y, gLapTimes[1][i]);
|
||||||
|
|
||||||
y += 16;
|
y += 16;
|
||||||
i++;
|
}
|
||||||
} while (i < gNumRaceTrackLaps);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user