mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-18 07:22:03 +00:00
Fix kartspeed/kartweight writes
This commit is contained in:
parent
7f2090aeae
commit
9d6563fcf7
1 changed files with 4 additions and 4 deletions
|
@ -576,8 +576,8 @@ static inline void resynch_write_player(resynch_pak *rsp, const size_t i)
|
|||
// Just in case Lua does something like
|
||||
// modify these at runtime
|
||||
// SRB2kart
|
||||
rsp->kartspeed = (UINT8)LONG(players[i].kartspeed);
|
||||
rsp->kartweight = (UINT8)LONG(players[i].kartweight);
|
||||
rsp->kartspeed = (UINT8)players[i].kartspeed;
|
||||
rsp->kartweight = (UINT8)players[i].kartweight;
|
||||
//
|
||||
rsp->normalspeed = (fixed_t)LONG(players[i].normalspeed);
|
||||
rsp->runspeed = (fixed_t)LONG(players[i].runspeed);
|
||||
|
@ -708,8 +708,8 @@ static void resynch_read_player(resynch_pak *rsp)
|
|||
players[i].skin = LONG(rsp->skin);
|
||||
// Just in case Lua does something like
|
||||
// modify these at runtime
|
||||
players[i].kartspeed = (UINT8)LONG(rsp->kartspeed);
|
||||
players[i].kartweight = (UINT8)LONG(rsp->kartweight);
|
||||
players[i].kartspeed = (UINT8)rsp->kartspeed;
|
||||
players[i].kartweight = (UINT8)rsp->kartweight;
|
||||
|
||||
players[i].normalspeed = (fixed_t)LONG(rsp->normalspeed);
|
||||
players[i].runspeed = (fixed_t)LONG(rsp->runspeed);
|
||||
|
|
Loading…
Reference in a new issue