mirror of
https://github.com/ZDoom/gzdoom-last-svn.git
synced 2025-06-03 02:30:53 +00:00
- Possibly temporary fix so that player pawns stop losing their min/max pitches when traveling.
git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1273 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
parent
9474b30433
commit
debbb4f919
3 changed files with 22 additions and 8 deletions
|
@ -513,6 +513,7 @@ void APlayerPawn::Tick()
|
|||
void APlayerPawn::PostBeginPlay()
|
||||
{
|
||||
SetupWeaponSlots();
|
||||
SetupPlayerPitch();
|
||||
|
||||
// Voodoo dolls: restore original floorz/ceilingz logic
|
||||
if (player == NULL || player->mo != this)
|
||||
|
@ -522,14 +523,6 @@ void APlayerPawn::PostBeginPlay()
|
|||
P_FindFloorCeiling(this, true);
|
||||
z = floorz;
|
||||
}
|
||||
else if (player - players == consoleplayer)
|
||||
{
|
||||
// Ask the local player's renderer what pitch restrictions
|
||||
// should be imposed and let everybody know.
|
||||
Net_WriteByte(DEM_SETPITCHLIMIT);
|
||||
Net_WriteByte(Renderer->GetMaxViewPitch(false)); // up
|
||||
Net_WriteByte(Renderer->GetMaxViewPitch(true)); // down
|
||||
}
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
@ -556,6 +549,25 @@ void APlayerPawn::SetupWeaponSlots()
|
|||
}
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// APlayerPawn :: SetupSinglePlayerPitch
|
||||
//
|
||||
// Ask the local player's renderer what pitch restrictions
|
||||
// should be imposed and let everybody know.
|
||||
//
|
||||
//===========================================================================
|
||||
|
||||
void APlayerPawn::SetupPlayerPitch()
|
||||
{
|
||||
if (player != NULL && player->mo == this && player - players == consoleplayer)
|
||||
{
|
||||
Net_WriteByte(DEM_SETPITCHLIMIT);
|
||||
Net_WriteByte(Renderer->GetMaxViewPitch(false)); // up
|
||||
Net_WriteByte(Renderer->GetMaxViewPitch(true)); // down
|
||||
}
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// APlayerPawn :: AddInventory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue