Cleanup, fixed so that spectators are shown with a "spectator"-tag like it should.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2600 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
0a463a7413
commit
25d16782ee
1 changed files with 61 additions and 47 deletions
|
@ -2098,6 +2098,12 @@ ping time frags name
|
||||||
top = Sbar_ColorForMap (top); \
|
top = Sbar_ColorForMap (top); \
|
||||||
bottom = Sbar_ColorForMap (bottom); \
|
bottom = Sbar_ColorForMap (bottom); \
|
||||||
\
|
\
|
||||||
|
if (s->spectator) \
|
||||||
|
{ \
|
||||||
|
Draw_String( x, y, "spectator" ); \
|
||||||
|
} \
|
||||||
|
else \
|
||||||
|
{ \
|
||||||
if (largegame) \
|
if (largegame) \
|
||||||
Draw_Fill ( x, y+1, 40, 3, top); \
|
Draw_Fill ( x, y+1, 40, 3, top); \
|
||||||
else \
|
else \
|
||||||
|
@ -2117,8 +2123,16 @@ ping time frags name
|
||||||
Draw_Character ( x, y, 16); \
|
Draw_Character ( x, y, 16); \
|
||||||
Draw_Character ( x + 32, y, 17); \
|
Draw_Character ( x + 32, y, 17); \
|
||||||
} \
|
} \
|
||||||
|
} \
|
||||||
|
\
|
||||||
|
})
|
||||||
|
#define COLUMN_TEAMNAME COLUMN(team, 4*8, \
|
||||||
|
{ \
|
||||||
|
if (!s->spectator) \
|
||||||
|
{ \
|
||||||
|
Draw_FunStringLen(x, y, s->team, 4); \
|
||||||
|
} \
|
||||||
})
|
})
|
||||||
#define COLUMN_TEAMNAME COLUMN(team, 4*8, {Draw_FunStringLen(x, y, s->team, 4);})
|
|
||||||
#define COLUMN_NAME COLUMN(name, 16*8, {Draw_FunString(x, y, s->name);})
|
#define COLUMN_NAME COLUMN(name, 16*8, {Draw_FunString(x, y, s->name);})
|
||||||
#define COLUMN_KILLS COLUMN(kils, 4*8, {Draw_FunString(x, y, va("%4i", Stats_GetKills(k)));})
|
#define COLUMN_KILLS COLUMN(kils, 4*8, {Draw_FunString(x, y, va("%4i", Stats_GetKills(k)));})
|
||||||
#define COLUMN_TKILLS COLUMN(tkil, 4*8, {Draw_FunString(x, y, va("%4i", Stats_GetTKills(k)));})
|
#define COLUMN_TKILLS COLUMN(tkil, 4*8, {Draw_FunString(x, y, va("%4i", Stats_GetTKills(k)));})
|
||||||
|
|
Loading…
Reference in a new issue