fix: Mark logic for all lover gestures
This commit is contained in:
parent
a091a26d0d
commit
cc3dcffcd1
|
@ -86,7 +86,12 @@ func (r *Room) ReleaseHand(p PersonId) {
|
||||||
if nextSpeakerGesture > currentSpeakerGesture {
|
if nextSpeakerGesture > currentSpeakerGesture {
|
||||||
// raising the level of the speaker, need to save mark
|
// 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())
|
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
|
// also we need to remove marks from top to current speaker level
|
||||||
|
|
Loading…
Reference in New Issue