the headless server has no need to handle unit boost particles

This commit is contained in:
titiger 2014-12-30 20:34:05 +01:00
parent 172dfe3411
commit bcd6c7b310
1 changed files with 3 additions and 0 deletions

View File

@ -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;