From bcd6c7b310456306efb841c47ec09d6762e2d111 Mon Sep 17 00:00:00 2001 From: titiger Date: Tue, 30 Dec 2014 20:34:05 +0100 Subject: [PATCH] the headless server has no need to handle unit boost particles --- source/glest_game/type_instances/unit.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/glest_game/type_instances/unit.cpp b/source/glest_game/type_instances/unit.cpp index 7dbac9f3..bc4f2695 100644 --- a/source/glest_game/type_instances/unit.cpp +++ b/source/glest_game/type_instances/unit.cpp @@ -323,6 +323,9 @@ void UnitAttackBoostEffect::setSource(const Unit *unit) { void UnitAttackBoostEffect::applyLoadedAttackBoostParticles(UnitParticleSystemType *upstPtr,const XmlNode *node, Unit* unit) { if (upstPtr != NULL) { bool showUnitParticles = Config::getInstance().getBool("UnitParticles","true"); + if(GlobalStaticFlags::getIsNonGraphicalModeEnabled() == true) { + showUnitParticles = false; + } if (showUnitParticles == true) { upst = new UnitParticleSystemType(); *upst = *upstPtr;