tOnly register with the metaserver if we are running as the standalone server, not when running in single-player mode. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit b3cff1ab4e0b62024e0408c2a47b9c762cdeaae9
(DIR) parent 824fdbb71f4970bc6f0ae1df82aaec375d0e1692
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Mon, 7 Oct 2002 10:39:40 +0000
Only register with the metaserver if we are running as the standalone server,
not when running in single-player mode.
Diffstat:
M src/serverside.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/src/serverside.c b/src/serverside.c
t@@ -232,8 +232,9 @@ void RegisterWithMetaServer(gboolean Up, gboolean SendData,
gboolean retval;
int i;
- if (!MetaServer.Active || WantQuit)
+ if (!MetaServer.Active || WantQuit || !Server) {
return;
+ }
if (MetaMinTimeout > time(NULL) && RespectTimeout) {
dopelog(3, LF_SERVER,