mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
update player centering in G_DoLoadLevel (#1622)
This commit is contained in:
parent
b7f9f7a794
commit
481b8de46d
@ -54,6 +54,7 @@
|
|||||||
#include "mn_menu.h"
|
#include "mn_menu.h"
|
||||||
#include "m_misc.h"
|
#include "m_misc.h"
|
||||||
#include "m_random.h"
|
#include "m_random.h"
|
||||||
|
#include "mn_setup.h"
|
||||||
#include "mn_snapshot.h"
|
#include "mn_snapshot.h"
|
||||||
#include "m_swap.h" // [FG] LONG
|
#include "m_swap.h" // [FG] LONG
|
||||||
#include "memio.h"
|
#include "memio.h"
|
||||||
@ -959,7 +960,6 @@ static void G_DoLoadLevel(void)
|
|||||||
|
|
||||||
critical = (gameaction == ga_playdemo || demorecording || demoplayback || D_CheckNetConnect());
|
critical = (gameaction == ga_playdemo || demorecording || demoplayback || D_CheckNetConnect());
|
||||||
|
|
||||||
P_UpdateDirectVerticalAiming();
|
|
||||||
P_UpdateCheckSight();
|
P_UpdateCheckSight();
|
||||||
|
|
||||||
// [crispy] pistol start
|
// [crispy] pistol start
|
||||||
@ -969,6 +969,9 @@ static void G_DoLoadLevel(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
P_SetupLevel (gameepisode, gamemap, 0, gameskill);
|
P_SetupLevel (gameepisode, gamemap, 0, gameskill);
|
||||||
|
|
||||||
|
MN_UpdateFreeLook();
|
||||||
|
|
||||||
// [Woof!] Do not reset chosen player view across levels in multiplayer
|
// [Woof!] Do not reset chosen player view across levels in multiplayer
|
||||||
// demo playback. However, it must be reset when starting a new game.
|
// demo playback. However, it must be reset when starting a new game.
|
||||||
if (usergame)
|
if (usergame)
|
||||||
|
@ -2099,7 +2099,7 @@ void MN_UpdateFreeLook(void)
|
|||||||
{
|
{
|
||||||
P_UpdateDirectVerticalAiming();
|
P_UpdateDirectVerticalAiming();
|
||||||
|
|
||||||
if (!mouselook || !padlook)
|
if (!mouselook && !padlook)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < MAXPLAYERS; ++i)
|
for (int i = 0; i < MAXPLAYERS; ++i)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user