From 538a6ed02762dd9bab3ddb09bfde627ef9f6faf6 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Fri, 1 Jun 2007 13:54:06 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1057 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/client.cpp | 4 ++-- source/src/protos.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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();