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

Clip parsed level from debug console to 50 #6697

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

tetektoza
Copy link
Contributor

Currently, in givelvl command user can type lvl above 50, which is a level cap. This patch clips it to 50, so we can prevent an accidential freeze of the game caused by NetSendCmd loop if user types a really big number.

Source/debug.cpp Outdated Show resolved Hide resolved
@tetektoza tetektoza force-pushed the clip_parsed_level_to_50 branch 3 times, most recently from 87a23fb to 6b5a715 Compare October 11, 2023 22:01
Source/debug.cpp Outdated Show resolved Hide resolved
@tetektoza tetektoza force-pushed the clip_parsed_level_to_50 branch from 6b5a715 to fbff22a Compare October 11, 2023 22:04
Source/debug.cpp Outdated Show resolved Hide resolved
Source/debug.cpp Outdated Show resolved Hide resolved
Currently, in givelvl command user can type lvl above 50, which is a
level cap. This patch clips it to 50, so we can prevent an accidential
freeze of the game caused by NetSendCmd loop if user types a really big
number.
@tetektoza tetektoza force-pushed the clip_parsed_level_to_50 branch from fbff22a to adc91c3 Compare October 11, 2023 22:29
@StephenCWills StephenCWills merged commit 41c5175 into diasurgical:master Oct 11, 2023
19 checks passed
@tetektoza tetektoza deleted the clip_parsed_level_to_50 branch October 11, 2023 22:52
@AJenbo
Copy link
Member

AJenbo commented Oct 11, 2023

@tetektoza Welcome to the contributor list

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.

4 participants