fix compiling warnings in GCC

This commit is contained in:
justgo97
2021-03-03 22:23:52 +01:00
committed by aurhat
parent 05003f9238
commit c54e9564bb
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -396,7 +396,9 @@ void addmsg(int type, const char *fmt, ...)
case 's':
{
const char *t = va_arg(args, const char *);
if(t) sendstring(t, p); nums++; break;
if(t) sendstring(t, p);
nums++;
break;
}
}
va_end(args);
+2 -1
View File
@@ -350,8 +350,9 @@ void showhudextras(char hudextras, char value){
{
playerent *p = getclient(teamworkid);
if (!p || p == player1) teamworkid = -1;
else outf("\f5you covered %s",p->name); break;
else outf("\f5you covered %s",p->name);
}
break;
default:
{
if (value >= HE_NUM)