Fix lights cycle

This commit is contained in:
Maple Redleaf
2025-12-18 11:00:26 -06:00
parent fd7d44e2ce
commit 61168bee04

View File

@@ -13,8 +13,10 @@ Light::~Light() = default;
void Light::Update() { void Light::Update() {
cycle++; cycle++;
if (cycle >= MAX_CYCLE_FRAMES) if (cycle >= MAX_CYCLE_FRAMES) {
SwitchState(); SwitchState();
cycle = 0;
}
} }
void Light::Draw() { void Light::Draw() {