0
0
Fork 0
mirror of https://git.do.srb2.org/KartKrew/Kart-Public.git synced 2025-01-27 11:40:52 +00:00

Is this useful in any way?

This commit is contained in:
fickleheart 2019-03-26 00:09:23 -05:00
parent 204a6d5c20
commit 6cf7cc0276

View file

@ -688,7 +688,7 @@ static inline void resynch_write_player(resynch_pak *rsp, const size_t i)
static void resynch_read_player(resynch_pak *rsp) static void resynch_read_player(resynch_pak *rsp)
{ {
INT32 i = rsp->playernum, j; INT32 i = rsp->playernum, j;
mobj_t *savedmo = players[i].mo; //mobj_t *savedmo = players[i].mo;
// Do not send anything visual related. // Do not send anything visual related.
// Only send data that we need to know for physics. // Only send data that we need to know for physics.
@ -795,11 +795,17 @@ static void resynch_read_player(resynch_pak *rsp)
return; return;
//...but keep old mo even if it is corrupt or null! //...but keep old mo even if it is corrupt or null!
players[i].mo = savedmo; //players[i].mo = savedmo;
//Transfer important mo information if they have a valid mo. //Transfer important mo information if they have a valid mo.
if (!rsp->hasmo) if (!rsp->hasmo)
{
// Get rid of their object if they aren't supposed to have one.....??
if (players[i].mo)
P_RemoveMobj(players[i].mo);
return; return;
}
//server thinks player has a body. //server thinks player has a body.
//Give them a new body that can be then manipulated by the server's info. //Give them a new body that can be then manipulated by the server's info.