Skip to content

Commit

Permalink
Blood: Use tick constant for underwater breathing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tmyqlfpir committed Oct 22, 2024
1 parent 8964041 commit acdadd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/blood/src/actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5845,7 +5845,7 @@ void actProcessSprites(void)
{
const char bDivingSuit = packItemActive(pPlayer, kPackDivingSuit);
if (bDivingSuit || pPlayer->godMode)
pPlayer->underwaterTime = 1200;
pPlayer->underwaterTime = kTicRate*10;
else
pPlayer->underwaterTime = ClipLow(pPlayer->underwaterTime-kTicsPerFrame, 0);
if (pPlayer->underwaterTime < 1080 && packCheckItem(pPlayer, kPackDivingSuit) && !bDivingSuit)
Expand Down

0 comments on commit acdadd4

Please sign in to comment.