Added botstuffs to savestate

This commit is contained in:
Shane Ellis 2021-01-23 10:39:59 -05:00
parent 25bf4b54e2
commit 1274b4651e

View file

@ -158,6 +158,18 @@ static void P_NetArchivePlayers(void)
WRITEUINT32(save_p, players[i].dashmode); WRITEUINT32(save_p, players[i].dashmode);
WRITEUINT32(save_p, players[i].skidtime); WRITEUINT32(save_p, players[i].skidtime);
//////////
// Bots //
//////////
WRITEUINT8(save_p, players[i].bot);
WRITEUINT8(save_p, players[i].botmem.lastForward);
WRITEUINT8(save_p, players[i].botmem.lastBlocked);
WRITEUINT8(save_p, players[i].botmem.catchup_tics);
WRITEUINT8(save_p, players[i].botmem.thinkstate);
WRITEUINT8(save_p, players[i].blocked);
WRITEUINT16(save_p, players[i].lastbuttons);
//////////////////////////// ////////////////////////////
// Conveyor Belt Movement // // Conveyor Belt Movement //
//////////////////////////// ////////////////////////////
@ -372,6 +384,19 @@ static void P_NetUnArchivePlayers(void)
players[i].dashmode = READUINT32(save_p); // counter for dashmode ability players[i].dashmode = READUINT32(save_p); // counter for dashmode ability
players[i].skidtime = READUINT32(save_p); // Skid timer players[i].skidtime = READUINT32(save_p); // Skid timer
//////////
// Bots //
//////////
players[i].bot = READUINT8(save_p);
players[i].botmem.lastForward = READUINT8(save_p);
players[i].botmem.lastBlocked = READUINT8(save_p);
players[i].botmem.catchup_tics = READUINT8(save_p);
players[i].botmem.thinkstate = READUINT8(save_p);
players[i].blocked = READUINT8(save_p);
players[i].lastbuttons = READUINT16(save_p);
//////////////////////////// ////////////////////////////
// Conveyor Belt Movement // // Conveyor Belt Movement //
//////////////////////////// ////////////////////////////