* Updated to ZDoom r3328:

- Fixed: Pressing a key to advance an intermission screen only worked on the local computer.
- Be less verbose when attempting to play non-ZDoom demos.
- Do nothing in D_DoAdvanceDemo if gameaction is not ga_nothing.
- Need to bump demo/gameversion due to DEM_SETPITCHLIMIT. MINDEMOVERSION also needs to be touched, since the default limits are now 0.
- A_SetPitch now clamps the player's pitch within the valid range. It can be made to clamp other actors' pitches to within the range (-90,+90) degrees with the SPF_FORCECLAMP flag.
- Transmit the local viewpitch limits to the other players.


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1271 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
gez 2011-12-10 23:20:32 +00:00
parent 5158bd57d2
commit ddc9ca3f4f
18 changed files with 114 additions and 25 deletions

View file

@ -522,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
}
}
//===========================================================================
@ -2213,11 +2221,11 @@ void P_PlayerThink (player_t *player)
player->mo->pitch -= look;
if (look > 0)
{ // look up
player->mo->pitch = MAX(player->mo->pitch, Renderer->GetMaxViewPitch(false));
player->mo->pitch = MAX(player->mo->pitch, player->MinPitch);
}
else
{ // look down
player->mo->pitch = MIN(player->mo->pitch, Renderer->GetMaxViewPitch(true));
player->mo->pitch = MIN(player->mo->pitch, player->MaxPitch);
}
}
}