From 402627d851695bd155044914d35becf20ea6815d Mon Sep 17 00:00:00 2001 From: ln-zookeeper Date: Wed, 17 Aug 2016 02:11:01 +0300 Subject: [PATCH] Roughly cap the number of undead spawns to avoid performance issues --- .../The_South_Guard/scenarios/06b_The_Long_March.cfg | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/data/campaigns/The_South_Guard/scenarios/06b_The_Long_March.cfg b/data/campaigns/The_South_Guard/scenarios/06b_The_Long_March.cfg index 9f2598b748e..49d177b2b60 100644 --- a/data/campaigns/The_South_Guard/scenarios/06b_The_Long_March.cfg +++ b/data/campaigns/The_South_Guard/scenarios/06b_The_Long_March.cfg @@ -1040,6 +1040,13 @@ _f, _f, Re, _f greater_than=$first_undead_spawn_turn [/variable] + # Don't spawn more than is really needed, for performance reasons + [have_unit] + side=2 + race=bats,undead + count=0-50 + [/have_unit] + [then] {VARIABLE max_undead_spawns $turn_number} {VARIABLE_OP max_undead_spawns sub 2}