mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 10:11:04 +00:00
- InputPacket: Change q16avel
to avel
, changing type from fixed_t to float.
This commit is contained in:
parent
e53d58bd42
commit
9bcdeae6cd
20 changed files with 96 additions and 96 deletions
|
@ -162,7 +162,7 @@ int UnpackUserCmd (InputPacket *ucmd, const InputPacket *basis, uint8_t **stream
|
|||
if (flags & UCMDF_PITCH)
|
||||
ucmd->horz = ReadLong(stream);
|
||||
if (flags & UCMDF_YAW)
|
||||
ucmd->q16avel = ReadLong(stream);
|
||||
ucmd->avel = ReadLong(stream);
|
||||
if (flags & UCMDF_FORWARDMOVE)
|
||||
ucmd->fvel = ReadWord (stream);
|
||||
if (flags & UCMDF_SIDEMOVE)
|
||||
|
@ -198,10 +198,10 @@ int PackUserCmd (const InputPacket *ucmd, const InputPacket *basis, uint8_t **st
|
|||
flags |= UCMDF_PITCH;
|
||||
WriteLong (ucmd->horz, stream);
|
||||
}
|
||||
if (ucmd->q16avel != basis->q16avel)
|
||||
if (ucmd->avel != basis->avel)
|
||||
{
|
||||
flags |= UCMDF_YAW;
|
||||
WriteLong (ucmd->q16avel, stream);
|
||||
WriteLong (ucmd->avel, stream);
|
||||
}
|
||||
if (ucmd->fvel != basis->fvel)
|
||||
{
|
||||
|
@ -237,7 +237,7 @@ FSerializer &Serialize(FSerializer &arc, const char *key, InputPacket &cmd, Inpu
|
|||
{
|
||||
arc("actions", cmd.actions)
|
||||
("horz", cmd.horz)
|
||||
("avel", cmd.q16avel)
|
||||
("avel", cmd.avel)
|
||||
("fvel", cmd.fvel)
|
||||
("svwl", cmd.svel)
|
||||
.EndObject();
|
||||
|
@ -251,7 +251,7 @@ int WriteUserCmdMessage (InputPacket *ucmd, const InputPacket *basis, uint8_t **
|
|||
{
|
||||
if (ucmd->actions != 0 ||
|
||||
ucmd->horz != 0 ||
|
||||
ucmd->q16avel != 0 ||
|
||||
ucmd->avel != 0 ||
|
||||
ucmd->fvel != 0 ||
|
||||
ucmd->svel != 0)
|
||||
{
|
||||
|
@ -262,7 +262,7 @@ int WriteUserCmdMessage (InputPacket *ucmd, const InputPacket *basis, uint8_t **
|
|||
else
|
||||
if (ucmd->actions != basis->actions ||
|
||||
ucmd->horz != basis->horz ||
|
||||
ucmd->q16avel != basis->q16avel ||
|
||||
ucmd->avel != basis->avel ||
|
||||
ucmd->fvel != basis->fvel ||
|
||||
ucmd->svel != basis->svel)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue