update player centering in G_DoLoadLevel (#1622)

This commit is contained in:
Roman Fomin 2024-03-27 13:09:21 +07:00 committed by GitHub
parent b7f9f7a794
commit 481b8de46d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -54,6 +54,7 @@
#include "mn_menu.h"
#include "m_misc.h"
#include "m_random.h"
#include "mn_setup.h"
#include "mn_snapshot.h"
#include "m_swap.h" // [FG] LONG
#include "memio.h"
@ -959,7 +960,6 @@ static void G_DoLoadLevel(void)
critical = (gameaction == ga_playdemo || demorecording || demoplayback || D_CheckNetConnect());
P_UpdateDirectVerticalAiming();
P_UpdateCheckSight();
// [crispy] pistol start
@ -969,6 +969,9 @@ static void G_DoLoadLevel(void)
}
P_SetupLevel (gameepisode, gamemap, 0, gameskill);
MN_UpdateFreeLook();
// [Woof!] Do not reset chosen player view across levels in multiplayer
// demo playback. However, it must be reset when starting a new game.
if (usergame)

View File

@ -2099,7 +2099,7 @@ void MN_UpdateFreeLook(void)
{
P_UpdateDirectVerticalAiming();
if (!mouselook || !padlook)
if (!mouselook && !padlook)
{
for (int i = 0; i < MAXPLAYERS; ++i)
{