test stuff

This commit is contained in:
fickleheart 2019-01-04 23:08:50 -06:00
parent bd36a0f0a1
commit 656de08b96
3 changed files with 8 additions and 1 deletions

View file

@ -140,7 +140,7 @@
extern FILE *logstream;
#endif
//#define DEVELOP // Disable this for release builds to remove excessive cheat commands and enable MD5 checking and stuff, all in one go. :3
#define DEVELOP // Disable this for release builds to remove excessive cheat commands and enable MD5 checking and stuff, all in one go. :3
#ifdef DEVELOP
#define VERSION 0 // Game version
#define SUBVERSION 0 // more precise version number

View file

@ -1552,6 +1552,9 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
else if (cmd->driftturn < (-angleturn[1] * realtics))
cmd->driftturn = (-angleturn[1] * realtics);
cmd->angleturn = FixedMul(cmd->angleturn, cv_cam2_dist.value/160);
if (cv_playbackspeed.value == 1)
if (player->mo)
cmd->angleturn = K_GetKartTurnValue(player, cmd->angleturn);

View file

@ -6649,6 +6649,10 @@ static void P_MovePlayer(player_t *player)
player->lturn_max[leveltime%MAXPREDICTTICS] = player->rturn_max[leveltime%MAXPREDICTTICS] = 0;
}
if (cv_soniccd.value)
{
player->mo->angle = cmd->angleturn << 16;
} else
if (leveltime >= starttime)
{
// KART: Don't directly apply angleturn! It may have been either A) forged by a malicious client, or B) not be a smooth turn due to a player dropping frames.