Commit 9c834cd
committed
fix: (rotation) reset the silent rotation atomically on module disable
Disabling a rotation module mid-aim called cancelTargetRotation with immediate=false, which skips resetRotation while currentRotation != null. The next tick then snapped the silent yaw back to camera at up to 180 deg/tick WHILE the Silent movement-correction was still rewriting motion and sprint flipped on - a one-tick yaw+velocity+sprint discontinuity that GrimAC's movement simulation flags (offset 0.05-0.45 >= the 0.1 immediate-setback threshold), producing the freeze/rubber-band loop even without hitting anyone. Reset atomically (immediate = true) so currentRotation and activeSettings clear in the same tick before movement: onStrafe stops rewriting motion, the packet yaw matches the camera, and sprint reads raw input - velocity and the sent yaw never disagree. Matches the reference build, which keeps velocity decoupled from the silent yaw.1 parent 9647535 commit 9c834cd
1 file changed
Lines changed: 6 additions & 1 deletion
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
200 | 205 | | |
201 | 206 | | |
202 | 207 | | |
| |||
0 commit comments