fix(lighting): llig flicker tambe del YAML del jugador

This commit is contained in:
JailDesigner committed 2026-05-12 22:26:17 +02:00
1 parent fc9947b87f
commit 0046d526b0
3 files changed
+24 -10

No files matched your search

+2 -1
View File
@@ -1018,10 +1018,11 @@ void GameScene::applyLightingPass() {
// `Lighting::apply` salta el cercle al filtre intern. No fem un
// gating extern aquí (els jugadors són només 1-2 actors i el cost
// d'afegir-los al vector és menyspreable).
const bool PLAYER_FLICKER = Player::getLightFlicker();
for (const auto& p : players_) {
if (p->isOutOfPlay()) { continue; }
const auto C = p->getLightCenter();
emitters.push_back({.cx = C.x, .cy = C.y, .radius = PLAYER_R, .flicker = false});
emitters.push_back({.cx = C.x, .cy = C.y, .radius = PLAYER_R, .flicker = PLAYER_FLICKER});
}
for (const auto* e : entity_manager_.getEntities()) {
const int R = e->getLightRadius();