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

More changes for #3251 #3253

Merged
merged 9 commits into from Nov 29, 2023
Merged

More changes for #3251 #3253

merged 9 commits into from Nov 29, 2023

Conversation

Lpsd
Copy link
Member

@Lpsd Lpsd commented Nov 28, 2023

Currently it's possible that the player spams 100 events, but half of them are caught in one interval, and the rest in another (since the whole map gets cleared each interval). This means if your threshold is 100, it's only going to count as 50.

These changes make it so the map is processed every pulse, and each entry has its interval tracked individually. No more lost counts

Server/mods/deathmatch/logic/CGame.h Outdated Show resolved Hide resolved
Server/mods/deathmatch/logic/CGame.cpp Outdated Show resolved Hide resolved
Server/mods/deathmatch/logic/CGame.h Outdated Show resolved Hide resolved
Server/mods/deathmatch/logic/CGame.cpp Outdated Show resolved Hide resolved
@Lpsd
Copy link
Member Author

Lpsd commented Nov 28, 2023

Committed changes from review

@tederis
Copy link
Collaborator

tederis commented Nov 29, 2023

LGTM

Copy link
Member

@Dutchman101 Dutchman101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code reviewed by TEDERIs, merge requested by Lpsd

@Dutchman101 Dutchman101 merged commit 07013d2 into multitheftauto:master Nov 29, 2023
6 checks passed
MTABot pushed a commit that referenced this pull request Nov 29, 2023
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.

None yet

3 participants