the headless server has no need to handle unit boost particles
This commit is contained in:
parent
172dfe3411
commit
bcd6c7b310
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue