-
Notifications
You must be signed in to change notification settings - Fork 619
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
Fixed some warnings #1116
base: master
Are you sure you want to change the base?
Fixed some warnings #1116
Conversation
@@ -2904,8 +2904,8 @@ qboolean G_CheckClampUcmd( gentity_t *ent, usercmd_t *ucmd ) | |||
damage = Q_irand( 3, 5 ); | |||
} | |||
} | |||
if ( ent->client->ps.legsAnimTimer <= 1150 | |||
&& ent->client->ps.legsAnimTimer > 10500 ) | |||
if ( ent->client->ps.legsAnimTimer > 1150 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems this conflicts with #1119. I'm not sure which one is correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you look at the other checks in the same function you will see that most are checking for a 100ms time window such as:
if ( ent->client->ps.legsAnimTimer <= 3150
&& ent->client->ps.legsAnimTimer > 3050 )
or
if ( ent->client->ps.legsAnimTimer <= 5700
&& ent->client->ps.legsAnimTimer > 5600 )
which is why I assumed mine would be the logical fix here. I could also be wrong though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I'm concerned, @tobhe 's one is correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes obvious typos in the code that messes up stuff. I think it should be merged, it's relatively straightforward
No description provided.