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

Ducktap fix #155

Merged
merged 6 commits into from
Feb 25, 2022
Merged

Ducktap fix #155

merged 6 commits into from
Feb 25, 2022

Conversation

yhoiluhi
Copy link
Contributor

Fix +ducktap that you weren't able to interfere in "ducking" process, now its working like +bxt_tas_ducktap

@YaLTeR
Copy link
Owner

YaLTeR commented Feb 24, 2022

Is there any reason why you moved the code down? It's very hard to see what the actual code differences are this way. Could you move it back where it was so the difference is readable please?

@yhoiluhi
Copy link
Contributor Author

I'm using in_duck.state check in function which is undeclared if i don't move function down

cl_dll/input.cpp Outdated
Comment on lines 165 to 168
static bool duck_was_pressed = false;
static bool should_release_duck;

if (in_duck.state & 1)
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
static bool duck_was_pressed = false;
static bool should_release_duck;
if (in_duck.state & 1)
static bool should_release_duck;
bool duck_was_pressed = false;
if (in_duck.state & 1)

Doesn't need to be a static if it's set every time.

Also please rename to duck_is_pressed and remove the set in the should_release_duck condition below as it does nothing.

@YaLTeR YaLTeR merged commit ddb0032 into YaLTeR:master Feb 25, 2022
@YaLTeR
Copy link
Owner

YaLTeR commented Feb 25, 2022

Thanks!

SmileyAG pushed a commit to SmileyAG/OpenAG that referenced this pull request Dec 14, 2023
* ducktap fix

* remove cl_duck_priority

* some changes

* remove unnecessary set
SmileyAG pushed a commit to SmileyAG/OpenAG that referenced this pull request Dec 14, 2023
* ducktap fix

* remove cl_duck_priority

* some changes

* remove unnecessary set
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