mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Review fixes
This commit is contained in:
parent
be4a2be1da
commit
7788fa116f
3 changed files with 13 additions and 11 deletions
18
src/g_demo.c
18
src/g_demo.c
|
|
@ -136,15 +136,15 @@ demoghost *ghosts = NULL;
|
|||
#define DEMO_BOT 0x08
|
||||
|
||||
// For demos
|
||||
#define ZT_FWD 1
|
||||
#define ZT_SIDE 2
|
||||
#define ZT_TURNING 4
|
||||
#define ZT_ANGLE 8
|
||||
#define ZT_THROWDIR 16
|
||||
#define ZT_BUTTONS 32
|
||||
#define ZT_AIMING 64
|
||||
#define ZT_LATENCY 128
|
||||
#define ZT_FLAGS 256
|
||||
#define ZT_FWD 0x0001
|
||||
#define ZT_SIDE 0x0002
|
||||
#define ZT_TURNING 0x0004
|
||||
#define ZT_ANGLE 0x0008
|
||||
#define ZT_THROWDIR 0x0010
|
||||
#define ZT_BUTTONS 0x0020
|
||||
#define ZT_AIMING 0x0040
|
||||
#define ZT_LATENCY 0x0080
|
||||
#define ZT_FLAGS 0x0100
|
||||
// Ziptics are UINT16 now, go nuts
|
||||
|
||||
#define DEMOMARKER 0x80 // demobuf.end
|
||||
|
|
|
|||
|
|
@ -1095,12 +1095,14 @@ static void G_DoAnglePrediction(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer, p
|
|||
realtics--;
|
||||
}
|
||||
|
||||
#if 0
|
||||
// Left here in case it needs unsealing later. This tried to replicate an old localcam function, but this behavior was unpopular in tests.
|
||||
//if (player->pflags & PF_DRIFTEND)
|
||||
if (false) // Left here in case it needs unsealing later. This tried to replicate an old localcam function, but this behavior was unpopular in tests.
|
||||
{
|
||||
localangle[ssplayer - 1] = player->mo->angle;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
localangle[ssplayer - 1] += angleChange;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3189,7 +3189,7 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
|||
// Hack-adjacent.
|
||||
// Sometimes stale ticcmds send a weird angle at the start of the race.
|
||||
// P_UpdatePlayerAngle knows to ignore cmd angle when you literally can't turn, so we do the same here.
|
||||
if (leveltime > starttime)
|
||||
if (leveltime > introtime)
|
||||
focusangle = player->cmd.angle << TICCMD_REDUCE;
|
||||
else
|
||||
focusangle = mo->angle; // Just use something known sane.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue