Unprediction needs to restore selected inventory

This commit is contained in:
Edward Richardson 2014-10-05 16:57:31 +13:00
parent 981b5f32e0
commit 0f9a8176f5

View file

@ -2744,9 +2744,12 @@ void P_UnPredictPlayer ()
if (player->cheats & CF_PREDICTING)
{
unsigned int i;
AActor *act = player->mo;
APlayerPawn *act = player->mo;
AActor *savedcamera = player->camera;
TObjPtr<AInventory> InvSel = act->InvSel;
int inventorytics = player->inventorytics;
*player = PredictionPlayerBackup;
// Restore the camera instead of using the backup's copy, because spynext/prev
@ -2859,6 +2862,9 @@ void P_UnPredictPlayer ()
}
block = block->NextBlock;
}
act->InvSel = InvSel;
player->inventorytics = inventorytics;
}
}