fix compilation issues

This commit is contained in:
flowtron
2021-04-15 08:50:20 +02:00
parent 70ba17e2b2
commit d99679ea95
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1467,9 +1467,9 @@ void scallvote(int *type, const char *arg1, const char *arg2)
}
case SA_PAUSE:
{
if (!arg1 || !isdigit(arg1[0]) || !multiplayer(false))
if (!arg1 || !isdigit(arg1[0]) || !multiplayer(NULL))
{
if(!multiplayer(false))
if(!multiplayer(NULL))
conoutf("\f3pause is not available in singleplayer.");
else if (arg1 && !isdigit(arg1[0])) conoutf("\f3invalid vote");
break;
+1 -1
View File
@@ -1498,7 +1498,7 @@ int main(int argc, char **argv)
limitfps(millis, totalmillis);
int elapsed = millis-totalmillis;
entropy_add_byte(elapsed);
if(multiplayer(false))
if(multiplayer(NULL))
{
if(ispaused) curtime = 0;
else curtime = elapsed;
+1 -1
View File
@@ -975,7 +975,7 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat
glOrtho(0, VIRTW * matchpausedfontfactor, VIRTH * matchpausedfontfactor, 0, -1, 1);
const int left = (VIRTW * matchpausedfontfactor) / 2 - text_width(matchpaused) / 2;
const int top = (VIRTH * matchpausedfontfactor) * 5 / 6;
draw_textf(matchpaused, left, top);
draw_text(matchpaused, left, top);
}
/* * /