feat: don't score own quote

This commit is contained in:
Settel 2022-03-15 07:39:38 +01:00
parent ff617fc7ea
commit 5611f852b1

View File

@ -21,7 +21,9 @@ func (gm *Game) revealSource() {
for _, p := range gm.players {
selId := gm.round.selections[p.id]
if selId == PLAYER_SELECTION_EMPTY || selId == PLAYER_SELECTION_NONE {
if p.id == sourceId {
continue
} else if selId == PLAYER_SELECTION_EMPTY || selId == PLAYER_SELECTION_NONE {
continue
} else if selId == sourceId {
p.score += 10