Skip to content

Commit c91805f

Browse files
committed
#209 overlay: fix multiplayer CTF misaligned flag counter
+ mdraw: match original behaviour of DrawMultiplayerTarget (thanks @Natsu235)
1 parent bf1aa0b commit c91805f

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src_rebuild/Game/C/mdraw.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,19 @@ void DrawMultiplayerTarget(MS_TARGET *target)
386386
{
387387
tv.vx = player[gPlayerWithTheFlag].pos[0];
388388
tv.vz = player[gPlayerWithTheFlag].pos[2];
389+
390+
if (gPlayerWithTheFlag == 0)
391+
{
392+
r = 128;
393+
g = 0;
394+
b = 0;
395+
}
396+
else if (gPlayerWithTheFlag == 1)
397+
{
398+
r = 0;
399+
g = 128;
400+
b = 0;
401+
}
389402
}
390403

391404
break;

src_rebuild/Game/C/overlay.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,9 +631,9 @@ void DrawDrivingGameOverlays(void)
631631
sprintf(string, "%d", gPlayerScore.items);
632632
PrintString(string, x + 3, 16);
633633

634-
x = PrintString(G_LTXT(GTXT_Flags), gOverlayXPos, 132);
634+
x = PrintString(G_LTXT(GTXT_Flags), gOverlayXPos, SCREEN_H / 2 + 12);
635635
sprintf(string, "%d", gPlayerScore.P2items);
636-
PrintString(string, x + 3, SCREEN_H / 2 + 4);
636+
PrintString(string, x + 3, SCREEN_H / 2 + 12);
637637
break;
638638
case GAME_SECRET:
639639
y = 36;

0 commit comments

Comments
 (0)