1
0
Fork 0
forked from fte/fteqw

corrected scoreboard in scr_chatmode.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1291 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-09-08 01:59:13 +00:00
parent 1ba75d6183
commit a8295592a2

View file

@ -1918,7 +1918,10 @@ void Sbar_DeathmatchOverlay (int start)
y = 24; y = 24;
if (cl.teamplay) if (cl.teamplay)
{ {
x = (vid.width - 320)/2 + 4; if (scr_chatmode)
x = vid.width/2 + (vid.width/2 - 320)/2 + 4;
else
x = (vid.width - 320)/2 + 4;
// 0 40 64 104 152 192 // 0 40 64 104 152 192
Draw_String ( x , y, "ping pl time frags team name"); Draw_String ( x , y, "ping pl time frags team name");
y += 8; y += 8;
@ -1928,7 +1931,10 @@ void Sbar_DeathmatchOverlay (int start)
} }
else else
{ {
x = (vid.width - 320)/2 + 16; if (scr_chatmode)
x = vid.width/2 + (vid.width/2 - 320)/2 + 16;
else
x = (vid.width - 320)/2 + 16;
// 0 40 64 104 152 // 0 40 64 104 152
Draw_String ( x , y, "ping pl time frags name"); Draw_String ( x , y, "ping pl time frags name");
y += 8; y += 8;
@ -2098,35 +2104,35 @@ void Sbar_ChatModeOverlay(void)
bottom = Sbar_ColorForMap (bottom); bottom = Sbar_ColorForMap (bottom);
if (largegame) if (largegame)
Draw_Fill ( x, y+1, 8, 3, top); Draw_Fill ( x, y+1, 8*4, 3, top);
else else
Draw_Fill ( x, y, 8, 4, top); Draw_Fill ( x, y, 8*4, 4, top);
Draw_Fill ( x, y+4, 8, 4, bottom); Draw_Fill ( x, y+4, 8*4, 4, bottom);
if (cl.spectator && k == Cam_TrackNum(0)) if (cl.spectator && k == Cam_TrackNum(0))
{ {
Draw_Character ( x, y, 16); Draw_Character ( x, y, 16);
Draw_Character ( x+vid.width/2-16, y, 17); Draw_Character ( x+8*3, y, 17);
} }
else if (!cl.spectator && k == cl.playernum[0]) else if (!cl.spectator && k == cl.playernum[0])
{ {
Draw_Character ( x, y, 16); Draw_Character ( x, y, 16);
Draw_Character ( x+vid.width/2-16, y, 17); Draw_Character ( x+8*3, y, 17);
} }
else if (cl.teamplay) else if (cl.teamplay)
{ {
if (!stricmp(Info_ValueForKey(s->userinfo, "team"), team)) if (!stricmp(Info_ValueForKey(s->userinfo, "team"), team))
{ {
Draw_Character ( x, y, '['); Draw_Character ( x, y, '[');
Draw_Character ( x+vid.width/2-16, y, ']'); Draw_Character ( x+8*3, y, ']');
} }
} }
// draw name // draw name
if (cl.teamplay) if (cl.teamplay)
Draw_FunString (x+8, y, s->name); Draw_FunString (x+8*4, y, s->name);
else else
Draw_FunString (x+8, y, s->name); Draw_FunString (x+8*4, y, s->name);
y += skip; y += skip;
} }