mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
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:
parent
244a0c1a5e
commit
564e00a3f2
1 changed files with 7 additions and 0 deletions
|
@ -7858,8 +7858,12 @@ void restoremapstate(mapstate_t *save)
|
||||||
if (save != NULL)
|
if (save != NULL)
|
||||||
{
|
{
|
||||||
int i, k, x;
|
int i, k, x;
|
||||||
|
char phealth[ud.multimode];
|
||||||
intptr_t j;
|
intptr_t j;
|
||||||
|
|
||||||
|
for (i=0;i<ud.multimode;i++)
|
||||||
|
phealth[i] = sprite[g_player[i].ps->i].extra;
|
||||||
|
|
||||||
pub = NUMPAGES;
|
pub = NUMPAGES;
|
||||||
pus = NUMPAGES;
|
pus = NUMPAGES;
|
||||||
vscrn();
|
vscrn();
|
||||||
|
@ -7929,6 +7933,9 @@ void restoremapstate(mapstate_t *save)
|
||||||
|
|
||||||
ResetPointerVars();
|
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)
|
if (g_player[myconnectindex].ps->over_shoulder_on != 0)
|
||||||
{
|
{
|
||||||
cameradist = 0;
|
cameradist = 0;
|
||||||
|
|
Loading…
Reference in a new issue