Skip to content

Commit

Permalink
fix wasted damage to not count chainsaw
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowberryHN committed Jan 6, 2024
1 parent c33d0b6 commit a5e17d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fpsgame/weapon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ namespace game
}

if(d->ai) d->gunwait[d->gunselect] += int(d->gunwait[d->gunselect]*(((101-d->skill)+rnd(111-d->skill))/100.f));
d->totalshots += guns[d->gunselect].damage*guns[d->gunselect].rays;
if(d->gunselect != GUN_FIST) d->totalshots += guns[d->gunselect].damage*guns[d->gunselect].rays;
recordpotentialdamage(d);

if(!d->ammo[d->gunselect] && d==player1)
Expand Down

0 comments on commit a5e17d7

Please sign in to comment.