mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 20:11:44 +00:00
Fix some warnings.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@981 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
63b3833d2e
commit
db7e43b79e
1 changed files with 8 additions and 8 deletions
|
@ -1055,18 +1055,18 @@ static char *Macro_LastSeenPowerup(void)
|
|||
{
|
||||
macro_buf[0] = 0;
|
||||
if (vars.enemy_powerups & TP_QUAD)
|
||||
Q_strncatz(macro_buf, tp_name_quad.string);
|
||||
Q_strncatz2(macro_buf, tp_name_quad.string);
|
||||
if (vars.enemy_powerups & TP_PENT)
|
||||
{
|
||||
if (macro_buf[0])
|
||||
Q_strncatz(macro_buf, tp_name_separator.string);
|
||||
Q_strncatz(macro_buf, tp_name_pent.string);
|
||||
Q_strncatz2(macro_buf, tp_name_separator.string);
|
||||
Q_strncatz2(macro_buf, tp_name_pent.string);
|
||||
}
|
||||
if (vars.enemy_powerups & TP_RING)
|
||||
{
|
||||
if (macro_buf[0])
|
||||
Q_strncatz(macro_buf, tp_name_separator.string);
|
||||
Q_strncatz(macro_buf, tp_name_ring.string);
|
||||
Q_strncatz2(macro_buf, tp_name_separator.string);
|
||||
Q_strncatz2(macro_buf, tp_name_ring.string);
|
||||
}
|
||||
}
|
||||
return macro_buf;
|
||||
|
@ -2795,10 +2795,10 @@ static void TP_FindPoint (void) {
|
|||
name = teammate ? tp_name_teammate.string : tp_name_enemy.string;
|
||||
}
|
||||
if (beststate->effects & EF_BLUE)
|
||||
Q_strncatz(buf, tp_name_quaded.string);
|
||||
Q_strncatz2(buf, tp_name_quaded.string);
|
||||
if (beststate->effects & EF_RED)
|
||||
Q_strncatz(buf, va("%s%s", buf[0] ? " " : "", tp_name_pented.string));
|
||||
Q_strncatz(buf, va("%s%s", buf[0] ? " " : "", name));
|
||||
Q_strncatz2(buf, va("%s%s", buf[0] ? " " : "", tp_name_pented.string));
|
||||
Q_strncatz2(buf, va("%s%s", buf[0] ? " " : "", name));
|
||||
Q_strncpyz (vars.pointname, buf, sizeof(vars.pointname));
|
||||
Q_strncpyz (vars.pointloc, TP_LocationName (beststate->origin), sizeof(vars.pointloc));
|
||||
|
||||
|
|
Loading…
Reference in a new issue