mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-26 15:31:03 +00:00
Add g_battleufo global, add to netsave
This commit is contained in:
parent
a24e9bb19f
commit
2ce05f018e
4 changed files with 15 additions and 0 deletions
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
// Battle overtime info
|
||||
struct battleovertime battleovertime;
|
||||
struct battleufo g_battleufo;
|
||||
|
||||
// Capsules mode enabled for this map?
|
||||
boolean battleprisons = false;
|
||||
|
|
|
|||
|
|
@ -19,6 +19,12 @@ extern struct battleovertime
|
|||
fixed_t x, y, z; ///< Position to center on
|
||||
} battleovertime;
|
||||
|
||||
extern struct battleufo
|
||||
{
|
||||
INT32 previousId;
|
||||
tic_t due;
|
||||
} g_battleufo;
|
||||
|
||||
extern boolean battleprisons;
|
||||
extern INT32 nummapboxes, numgotboxes; // keep track of spawned battle mode items
|
||||
extern UINT8 maptargets, numtargets;
|
||||
|
|
|
|||
|
|
@ -5738,6 +5738,10 @@ static void P_NetArchiveMisc(savebuffer_t *save, boolean resending)
|
|||
WRITEFIXED(save->p, battleovertime.y);
|
||||
WRITEFIXED(save->p, battleovertime.z);
|
||||
|
||||
// battleufo_t
|
||||
WRITEINT32(save->p, g_battleufo.previousId);
|
||||
WRITEUINT32(save->p, g_battleufo.due);
|
||||
|
||||
WRITEUINT32(save->p, wantedcalcdelay);
|
||||
for (i = 0; i < NUMKARTITEMS-1; i++)
|
||||
WRITEUINT32(save->p, itemCooldowns[i]);
|
||||
|
|
@ -5908,6 +5912,10 @@ static boolean P_NetUnArchiveMisc(savebuffer_t *save, boolean reloading)
|
|||
battleovertime.y = READFIXED(save->p);
|
||||
battleovertime.z = READFIXED(save->p);
|
||||
|
||||
// battleufo_t
|
||||
g_battleufo.previousId = READINT32(save->p);
|
||||
g_battleufo.due = READUINT32(save->p);
|
||||
|
||||
wantedcalcdelay = READUINT32(save->p);
|
||||
for (i = 0; i < NUMKARTITEMS-1; i++)
|
||||
itemCooldowns[i] = READUINT32(save->p);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue