fix compiling warnings in GCC

This commit is contained in:
justgo97
2020-11-03 12:52:37 +01:00
committed by aurhat
parent 6ec9d3cf80
commit fd89c56f17
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -397,7 +397,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
@@ -341,7 +341,8 @@ 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:
{