Skip to content

Fallback to zero when CMsgQAngle is missing#331

Merged
LaihoE merged 1 commit into
LaihoE:mainfrom
firots:fix/qangle-fallback
Jun 6, 2026
Merged

Fallback to zero when CMsgQAngle is missing#331
LaihoE merged 1 commit into
LaihoE:mainfrom
firots:fix/qangle-fallback

Conversation

@firots

@firots firots commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

view_angles is optional (Option<CMsgQAngle>) in CSGOInputHistoryEntryPB, but
parse_user_cmd unwrapped it with .expect(). Some entries have no view angle, so it panics.
This defaults the missing angle to (0, 0, 0) (matching prost's default accessors) instead of crashing.
Reproduced on these matchmaking demos (seems tied to abnormal player input and/or players leaving):

@LaihoE LaihoE merged commit 37987fa into LaihoE:main Jun 6, 2026
8 checks passed
@LaihoE

LaihoE commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants