diff --git a/source/src/client.cpp b/source/src/client.cpp index 9002a855..2f29c81d 100644 --- a/source/src/client.cpp +++ b/source/src/client.cpp @@ -12,10 +12,10 @@ bool c2sinit = false; // whether we need to tell the other clients our sta int getclientnum() { return player1 ? player1->clientnum : -1; } -bool multiplayer() +bool multiplayer(bool msg) { // check not correct on listen server? - if(curpeer) conoutf("operation not available in multiplayer"); + if(curpeer && msg) conoutf("operation not available in multiplayer"); return curpeer!=NULL; } diff --git a/source/src/protos.h b/source/src/protos.h index 10fd8217..56f7b66b 100644 --- a/source/src/protos.h +++ b/source/src/protos.h @@ -108,7 +108,7 @@ extern void abortconnect(); extern void disconnect(int onlyclean = 0, int async = 0); extern void toserver(char *text); extern void addmsg(int type, const char *fmt = NULL, ...); -extern bool multiplayer(); +extern bool multiplayer(bool msg = true); extern bool allowedittoggle(); extern void sendpackettoserv(int chan, struct _ENetPacket *packet); extern void gets2c();