From 5d42eeeb50d0c574231f45f9e7ef98f4bc0737d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Severin=20Gl=C3=B6ckner?= Date: Wed, 18 Jan 2017 00:11:06 +0100 Subject: [PATCH] This commit avoids sourcing the units twice in multiplayer campaigns. --- campaign.cfg | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/campaign.cfg b/campaign.cfg index 1568de2..21bba19 100644 --- a/campaign.cfg +++ b/campaign.cfg @@ -4,6 +4,7 @@ # by using this file, internal structure of era can be changed # without breaking compatibility with campaigns +#ifndef MULTIPLAYER [binary_path] path=data/add-ons/Archaic_Era/ [/binary_path] @@ -21,3 +22,10 @@ {~add-ons/Archaic_Era/units/ukians_race.cfg} {~add-ons/Archaic_Era/units/south-seas_race.cfg} [/units] +#else +# in multiplayercampaigns, this era's units and binary_path are known to all add-ons (in difference to the macros) +# only if you use [advancefrom] or extra_defines= for custom units it may (or may not) be needed to read that unit(s) again +{~add-ons/Archaic_Era/mainline-strings.cfg} +{~add-ons/Archaic_Era/utils} +# {~add-ons/Archaic_Era/theme.cfg} +#endif