[PR #2456] [MERGED] Move /particle count 0 particles at speed times delta #4333

Closed
opened 2026-11-03 04:16:24 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2456
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/particle-count-zero


📝 Commits (2)

  • 41ca489 Move /particle count 0 particles at speed times delta
  • 1258c24 Multiply the particle speed and delta as floats, as handleParticleEvent does

📊 Changes

1 file changed (+4 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/commands/world_cmds.rs (+4 -2)

📄 Description

What and why

/particle with a count of 0 used the delta as the velocity in the window's own game. Vanilla multiplies it by the speed (a count of 0 means "one particle moving at speed times delta"). The packet sent to LAN guests already did this, so the host and the guests saw different particles.

Vanilla reference

ClientPacketListener.handleParticleEvent, the count() == 0 branch.

Self-check

cargo check -p horizon-client passes.


🔄 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/2456 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/particle-count-zero` --- ### 📝 Commits (2) - [`41ca489`](https://github.com/horizon-rust/horizon/commit/41ca489d4e066b9c0a82ff6df1e08b10b27f321b) Move /particle count 0 particles at speed times delta - [`1258c24`](https://github.com/horizon-rust/horizon/commit/1258c2473b806540ea3fb31496af859e0958f1f0) Multiply the particle speed and delta as floats, as handleParticleEvent does ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/commands/world_cmds.rs` (+4 -2) </details> ### 📄 Description ## What and why `/particle` with a count of 0 used the delta as the velocity in the window's own game. Vanilla multiplies it by the speed (a count of 0 means "one particle moving at speed times delta"). The packet sent to LAN guests already did this, so the host and the guests saw different particles. ## Vanilla reference `ClientPacketListener.handleParticleEvent`, the `count() == 0` branch. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:16:24 +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#4333
No description provided.