fix: Mark logic for all lover gestures

This commit is contained in:
efim 2023-11-25 14:09:09 +00:00
parent a091a26d0d
commit cc3dcffcd1
1 changed files with 6 additions and 1 deletions

View File

@ -86,7 +86,12 @@ func (r *Room) ReleaseHand(p PersonId) {
if nextSpeakerGesture > currentSpeakerGesture {
// raising the level of the speaker, need to save mark
log.Printf("we do have nextSpeaker of priority %s higher than current %s", nextSpeakerGesture.String(), currentSpeakerGesture.String())
r.Marks[currentSpeakerGesture] = p
for gesture := HandGesture(0); gesture < nextSpeakerGesture; gesture++ {
_, alreadySet := r.Marks[gesture]
if !alreadySet {
r.Marks[gesture] = p
}
}
}
// also we need to remove marks from top to current speaker level