mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 20:11:47 +00:00
FLAGS IS NOT LATENCY
UH OH STINKY COPY PASTE!!!!
This commit is contained in:
parent
55bcfe48f4
commit
dcee9269dd
2 changed files with 5 additions and 2 deletions
|
|
@ -505,7 +505,7 @@ void G_ReadDemoTiccmd(ticcmd_t *cmd, INT32 playernum)
|
||||||
if (ziptic & ZT_LATENCY)
|
if (ziptic & ZT_LATENCY)
|
||||||
oldcmd[playernum].latency = READUINT8(demo_p);
|
oldcmd[playernum].latency = READUINT8(demo_p);
|
||||||
if (ziptic & ZT_FLAGS)
|
if (ziptic & ZT_FLAGS)
|
||||||
oldcmd[playernum].latency = READUINT8(demo_p);
|
oldcmd[playernum].flags = READUINT8(demo_p);
|
||||||
|
|
||||||
G_CopyTiccmd(cmd, &oldcmd[playernum], 1);
|
G_CopyTiccmd(cmd, &oldcmd[playernum], 1);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1111,7 +1111,6 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
|
||||||
|
|
||||||
cmd->forwardmove += (SINT8)forward;
|
cmd->forwardmove += (SINT8)forward;
|
||||||
|
|
||||||
cmd->latency = (leveltime & 0xFF); // Send leveltime when this tic was generated to the server for control lag calculations
|
|
||||||
cmd->flags = 0;
|
cmd->flags = 0;
|
||||||
|
|
||||||
if (chat_on || CON_Ready())
|
if (chat_on || CON_Ready())
|
||||||
|
|
@ -1137,6 +1136,10 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
|
||||||
if (addedtogame && gamestate == GS_LEVEL)
|
if (addedtogame && gamestate == GS_LEVEL)
|
||||||
{
|
{
|
||||||
LUAh_PlayerCmd(player, cmd);
|
LUAh_PlayerCmd(player, cmd);
|
||||||
|
|
||||||
|
// Send leveltime when this tic was generated to the server for control lag calculations.
|
||||||
|
// Only do this when in a level. Also do this after the hook, so that it can't overwrite this.
|
||||||
|
cmd->latency = (leveltime & 0xFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cmd->forwardmove > MAXPLMOVE)
|
if (cmd->forwardmove > MAXPLMOVE)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue