Skip to content

Conversation

The-New-Order
Copy link

No description provided.

@@ -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

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

Copy link
Contributor

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.

Copy link

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

Copy link

@bartrpe bartrpe left a 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

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