fix compilation issues
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/* * /
|
||||
|
||||
Reference in New Issue
Block a user