mirror of
https://github.com/NickTheFox99/ChristmOS.git
synced 2026-06-29 01:05:19 -04:00
Fix lights cycle
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user