Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

game: split EV_BULLET event again #2578

Closed
wants to merge 1 commit into from

Conversation

Vorschreibung
Copy link
Contributor

The commit d8bba8e tried to unify the 2 separate EV_BULLET_HIT_WALL/EV_BULLET_HIT_FLESH events into just EV_BULLET.

This however caused bugs on the client due to an overflow of the eventParm field, which was attempted to be repurposed to separate between wall/flesh events.
(#2571)

This commit leaves the majority of code refactoring from d8bba8e and splits EV_BULLET into EV_BULLET_HIT_WALL and EV_BULLET_HIT_FLESH again.

fixes #2571

@Vorschreibung
Copy link
Contributor Author

@Aciz 3rd time's the charm? :3

@Vorschreibung Vorschreibung force-pushed the fix-2570-3rd branch 2 times, most recently from a3e4a46 to defc928 Compare May 25, 2024 18:48
@Vorschreibung
Copy link
Contributor Author

Rebased on master - ready for review.

The commit d8bba8e tried to unify the 2
separate EV_BULLET_HIT_WALL/EV_BULLET_HIT_FLESH events into just
EV_BULLET.

This however caused bugs on the client due to an overflow of the
`eventParm` field, which was attempted to be repurposed to separate
between wall/flesh events.
(etlegacy#2571)

This commit leaves the majority of code refactoring from
d8bba8e and splits EV_BULLET into
EV_BULLET_HIT_WALL and EV_BULLET_HIT_FLESH again.

fixes etlegacy#2571
Copy link

sonarcloud bot commented May 25, 2024

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@mittermichal
Copy link
Contributor

i believe this would break demo playback compatibility

@Vorschreibung
Copy link
Contributor Author

Superseded by ac4b2de

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.

eventParm integer wraparound in EV_BULLET causes incorrect impacts for entities
2 participants