mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
Made a mistake in the directionchar branch. I'm pushing to master - naughty naughty - but nobody's around to stop me and it's my birthday c:
This commit is contained in:
parent
48c0ef2362
commit
ca42659e03
1 changed files with 6 additions and 1 deletions
|
@ -9805,6 +9805,11 @@ void P_PlayerThink(player_t *player)
|
|||
factor = 4;
|
||||
#endif
|
||||
}
|
||||
else if (player->pflags & PF_STARTDASH)
|
||||
{
|
||||
diff = (player->mo->angle - player->drawangle);
|
||||
factor = 4;
|
||||
}
|
||||
else if (cmd->forwardmove || cmd->sidemove) // only when you're pressing movement keys
|
||||
{
|
||||
diff = ((player->mo->angle + R_PointToAngle2(0, 0, cmd->forwardmove<<FRACBITS, -cmd->sidemove<<FRACBITS)) - player->drawangle);
|
||||
|
@ -9815,7 +9820,7 @@ void P_PlayerThink(player_t *player)
|
|||
else
|
||||
{
|
||||
diff = (player->mo->angle - player->drawangle);
|
||||
factor = ((player->pflags & PF_STARTDASH) ? 4 : 8);
|
||||
factor = 8;
|
||||
}
|
||||
|
||||
if (diff)
|
||||
|
|
Loading…
Reference in a new issue