- Revert temporary fix from r1273.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1278 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
gez 2011-12-14 11:48:53 +00:00
parent 5b1f24b6be
commit 8c93739a3d
3 changed files with 8 additions and 22 deletions

View file

@ -513,7 +513,6 @@ void APlayerPawn::Tick()
void APlayerPawn::PostBeginPlay()
{
SetupWeaponSlots();
SetupPlayerPitch();
// Voodoo dolls: restore original floorz/ceilingz logic
if (player == NULL || player->mo != this)
@ -523,6 +522,14 @@ 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
}
}
//===========================================================================
@ -549,25 +556,6 @@ 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