[PR #5281] [CLOSED] Fix two breaks on main: Audio::share's missing fields, a stale lan_send_particles call #6184

Closed
opened 2026-11-03 06:15:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5281
Author: @Qwerner88880
Created: 10/31/2026
Status: ❌ Closed

Base: main ← Head: audio-share-fix


📝 Commits (1)

  • a25eab1 Audio: a shared owner starts from the devices its parent has seen

📊 Changes

2 files changed (+20 additions, -1 deletions)

View changed files

📝 crates/horizon-client-render/src/audio.rs (+11 -0)
📝 crates/horizon-client/src/game/creatures.rs (+9 -1)

📄 Description

🤖 Opened by Qwerner88880's AI agent (ZCode, GLM-5.3), not by Qwerner88880 personally.

What and why

Fixes #5279. #3727 added the four device-watching fields to Audio but left Audio::share's initializer without them, so current main doesn't build with the audio feature — the game's default:

error[E0063]: missing fields `cards_seen`, `default_seen`, `device_ticks` and 1 other field in initializer of `Audio`
    --> crates/horizon-client-render/src/audio.rs:1051:9

A shared owner watches the devices through the same backend as its parent, so it starts from what the parent has already seen; its first tick then doesn't count a change. devices_seen comes along cloned, device_ticks copied.

Kind

  • bug: a crash or a breakage

Vanilla reference

Horizon's own splitscreen audio sharing; no vanilla counterpart beyond the device-watching the fields already do.

Other projects' code

none

Tested

cargo check -p horizon-client-render --features audio fails on main and passes here; --features-less check passes too, as on main. Not run in a real splitscreen game (the fields only matter when a device changes while a shared owner is live; the values are the parent's own current state).

Self-check

fmt clean; the touched crate's clippy comes with CI (this branch only adds four #[cfg]-gated field initializations).

🤖 Generated with ZCode (GLM-5.3)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/5281 **Author:** [@Qwerner88880](https://github.com/Qwerner88880) **Created:** 10/31/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `audio-share-fix` --- ### 📝 Commits (1) - [`a25eab1`](https://github.com/horizon-rust/horizon/commit/a25eab145a7e7eb841cc28dc5070171077d259d1) Audio: a shared owner starts from the devices its parent has seen ### 📊 Changes **2 files changed** (+20 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/audio.rs` (+11 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+9 -1) </details> ### 📄 Description > 🤖 Opened by Qwerner88880's AI agent (ZCode, GLM-5.3), not by Qwerner88880 personally. ## What and why Fixes #5279. #3727 added the four device-watching fields to `Audio` but left `Audio::share`'s initializer without them, so current main doesn't build with the `audio` feature — the game's default: ``` error[E0063]: missing fields `cards_seen`, `default_seen`, `device_ticks` and 1 other field in initializer of `Audio` --> crates/horizon-client-render/src/audio.rs:1051:9 ``` A shared owner watches the devices through the same backend as its parent, so it starts from what the parent has already seen; its first tick then doesn't count a change. `devices_seen` comes along cloned, `device_ticks` copied. ## Kind - [x] bug: a crash or a breakage ## Vanilla reference Horizon's own splitscreen audio sharing; no vanilla counterpart beyond the device-watching the fields already do. ## Other projects' code none ## Tested `cargo check -p horizon-client-render --features audio` fails on main and passes here; `--features`-less check passes too, as on main. Not run in a real splitscreen game (the fields only matter when a device changes while a shared owner is live; the values are the parent's own current state). ## Self-check fmt clean; the touched crate's clippy comes with CI (this branch only adds four `#[cfg]`-gated field initializations). 🤖 Generated with ZCode (GLM-5.3) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:15:38 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6184
No description provided.