Skip to content

Commit

Permalink
Update to FP Timer
Browse files Browse the repository at this point in the history
removed problematic client->
  • Loading branch information
dlm committed Mar 3, 2025
1 parent bfad302 commit baa4b54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/wp_saber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13349,10 +13349,10 @@ static void WP_ForcePowerRun( gentity_t *self, forcePowers_t forcePower, usercmd
extern usercmd_t ucmd;

//Prevent High FPS to activate the force power too quickly
if (self->client->forcePowerTime < level.time) {
if (self->forcePowerTime < level.time) {
return;
}
self->client->forcePowerTime = level.time + 33; //33ms => max 30 times per second
self->forcePowerTime = level.time + 33; //33ms => max 30 times per second
switch( (int)forcePower )
{
case FP_HEAL:
Expand Down

0 comments on commit baa4b54

Please sign in to comment.