From 0dc79f7f0adef4a687306930a36929a5ae8d22d8 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 18 Jul 2021 00:24:06 +0000 Subject: [PATCH] Small fixup git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5978 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/m_download.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/engine/client/m_download.c b/engine/client/m_download.c index 90abf48f7..d94962093 100644 --- a/engine/client/m_download.c +++ b/engine/client/m_download.c @@ -198,17 +198,13 @@ static char *manifestpackages; //metapackage named by the manicfest. static char *declinedpackages; //metapackage named by the manicfest. static int domanifestinstall; //SECURITY_MANIFEST_* +#ifdef WEBCLIENT static struct { char *package; //package to load. don't forget its dependancies too. char *map; //the map to load. } pm_onload; -#ifndef SERVERONLY -//static qboolean pluginpromptshown; //so we only show prompts for new externally-installed plugins once, instead of every time the file is reloaded. -#endif - -#ifdef WEBCLIENT static int allowphonehome = -1; //if autoupdates are disabled, make sure we get (temporary) permission before phoning home for available updates. (-1=unknown, 0=no, 1=yes) static qboolean doautoupdate; //updates will be marked (but not applied without the user's actions) static qboolean pkg_updating; //when flagged, further changes are blocked until completion. @@ -3983,6 +3979,10 @@ void PM_LoadMap(const char *package, const char *map) pkg_updating = true; PM_StartADownload(); } +#else +void PM_LoadMap(const char *package, const char *map) +{ //not supported, which is a shame because it might have been downloaded via other means. +} #endif //'just' starts doing all the things needed to remove/install selected packages void PM_ApplyChanges(void)