fix: roll state

fix issue when the call of roll() was resetting the state after trying to load titles
This commit is contained in:
cv
2021-10-31 13:26:32 +01:00
parent 03ef3e58ed
commit 93580554bd
+4 -4
View File
@@ -252,7 +252,7 @@ export class EventTimer extends Timer {
// look for events
this.rollLoad();
// broadcast state without recalling timer
// broadcast state without recalculating timer
this.broadcastState(false);
}
}
@@ -1038,12 +1038,12 @@ export class EventTimer extends Timer {
// do we need to change
if (this.state === 'roll') return;
// load into event
this.rollLoad();
// set state
this.state = 'roll';
// load into event
this.rollLoad();
this.broadcastState();
}