Enable slow turning for the first 6 tics of a turn

This commit is contained in:
Lephenixnoir 2021-09-20 18:09:08 +02:00
parent 516be94294
commit 8db4bb9758
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 7 additions and 8 deletions

View File

@ -216,17 +216,16 @@ void G_BuildTiccmd (ticcmd_t* cmd)
forward = side = 0;
/* NO IDEA WHAT THIS DOES, LET'S KEEP IT COMMENTED AND HOPE IT DOESN'T BREAK ANYTHING
// use two stage accelerative turning on the keyboard
if (gamekeydown[key_right] || gamekeydown[key_left])
turnheld += ticdup;
turnheld++;
else
turnheld = 0;
*/
/*if (turnheld < SLOWTURNTICS)
tspeed = 2; // slow turn
else */
tspeed = speed;
turnheld = 0;
if (turnheld < SLOWTURNTICS)
tspeed = 2; // slow turn
else
tspeed = speed;
if (gamekeydown[key_right])
cmd->angleturn -= angleturn[tspeed];