B2 fix-up: the own-line filter takes a line whatever the iterator's reference depth
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f3e9c5258f
commit
5ced4f38a8
1 changed files with 3 additions and 3 deletions
|
|
@ -1958,10 +1958,10 @@ pub(crate) fn select(inputs: &Inputs, tuning: &Tuning) -> Packet {
|
|||
let her = forms(inputs.state);
|
||||
let mut context = Context::new(guards(tuning, her), her);
|
||||
// Her own posted lines are never what she was sent: the quote guard and the echo check compare against others' words only.
|
||||
let others = |line: &&RoomLine| line.sender != inputs.people.own_sender;
|
||||
let others = |line: &RoomLine| line.sender != inputs.people.own_sender;
|
||||
let bodies: Vec<String> = match inputs.kind {
|
||||
TurnKind::Chat => inputs.room.messages.iter().chain(earlier_shown.iter().copied()).filter(others).flat_map(|line| shown_words(line, inputs.people.own_sender)).collect(),
|
||||
TurnKind::Beat => beat_tail(inputs, tuning).iter().filter(others).flat_map(|line| shown_words(line, inputs.people.own_sender)).collect(),
|
||||
TurnKind::Chat => inputs.room.messages.iter().chain(earlier_shown.iter().copied()).filter(|line| others(line)).flat_map(|line| shown_words(line, inputs.people.own_sender)).collect(),
|
||||
TurnKind::Beat => beat_tail(inputs, tuning).iter().filter(|line| others(line)).flat_map(|line| shown_words(line, inputs.people.own_sender)).collect(),
|
||||
TurnKind::FollowUp | TurnKind::Reflection => Vec::new(),
|
||||
};
|
||||
// What she may reply to (map 16.20.8 (D), K20): the lines of others in the turn's room whose words this packet shows
|
||||
|
|
|
|||
Loading…
Reference in a new issue