Fix health when loading map state

git-svn-id: https://svn.eduke32.com/eduke32@863 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2008-07-18 03:22:20 +00:00
parent 244a0c1a5e
commit 564e00a3f2

View file

@ -7858,8 +7858,12 @@ void restoremapstate(mapstate_t *save)
if (save != NULL)
{
int i, k, x;
char phealth[ud.multimode];
intptr_t j;
for (i=0;i<ud.multimode;i++)
phealth[i] = sprite[g_player[i].ps->i].extra;
pub = NUMPAGES;
pus = NUMPAGES;
vscrn();
@ -7929,6 +7933,9 @@ void restoremapstate(mapstate_t *save)
ResetPointerVars();
for (i=0;i<ud.multimode;i++)
sprite[g_player[i].ps->i].extra = phealth[i];
if (g_player[myconnectindex].ps->over_shoulder_on != 0)
{
cameradist = 0;