@@ -469,18 +469,25 @@ void DeltaruneAlertLayer::progressText() {
469469 if (progressDialog) {
470470 dialogCount++;
471471 auto & spriteName = characters[dialogCount];
472- #ifdef COLORED_SPRITES
473- auto prevChar = (CCSprite*) m_mainLayer->getChildByID (" character-sprite" _spr);
474- auto newChar = CCSprite::create (spriteName.c_str ());
475- #else
476- auto prevChar = (CCSpriteGrayscale*) m_mainLayer->getChildByID (" character-sprite" _spr);
477- auto newChar = CCSpriteGrayscale::create (spriteName);
478- #endif
479- newChar->setPosition (prevChar->getPosition ());
480- newChar->setZOrder (prevChar->getZOrder ());
481- m_fields->characterSprite = newChar;
482- newChar->setID (" character-sprite" _spr);
483- m_mainLayer->addChild (newChar);
472+ if (Mod::get ()->getSettingValue <bool >(" coloredPortraits" )) {
473+ auto prevChar = (CCSprite*) m_mainLayer->getChildByID (" character-sprite" _spr);
474+ auto newChar = CCSprite::create (spriteName.c_str ());
475+ newChar->setPosition (prevChar->getPosition ());
476+ newChar->setZOrder (prevChar->getZOrder ());
477+ m_fields->characterSprite = newChar;
478+ newChar->setID (" character-sprite" _spr);
479+ m_mainLayer->addChild (newChar);
480+ }
481+ else {
482+ auto prevChar = (CCSpriteGrayscale*) m_mainLayer->getChildByID (" character-sprite" _spr);
483+ auto newChar = CCSpriteGrayscale::create (spriteName);
484+ newChar->setPosition (prevChar->getPosition ());
485+ newChar->setZOrder (prevChar->getZOrder ());
486+ m_fields->characterSprite = newChar;
487+ newChar->setID (" character-sprite" _spr);
488+ m_mainLayer->addChild (newChar);
489+ }
490+
484491
485492 auto title = m_fields->titles [dialogCount];
486493 auto & nameToSound = m_fields->nameToSound ;
0 commit comments