- made max. view pitch a property of the renderer so that it's overridable without
changing game code. - made SpawningMapThing an argument of AActor::StaticSpawn instead of a global variable. - added a stub to the DECORATE parser for defining dynamic lights directly in DECORATE. This is needed so that ZDoom remains compatible with any DECORATE which uses this GZDoom feature in the future. SVN r1935 (trunk)
This commit is contained in:
parent
19b23f2cf3
commit
cc2b0b0dcf
14 changed files with 109 additions and 18 deletions
|
|
@ -852,11 +852,11 @@ void R_InterpolateView (player_t *player, fixed_t frac, InterpolationViewer *ivi
|
|||
// Avoid overflowing viewpitch (can happen when a netgame is stalled)
|
||||
if (viewpitch + delta <= viewpitch)
|
||||
{
|
||||
viewpitch = +ANGLE_1*MAX_DN_ANGLE;
|
||||
viewpitch = screen->GetMaxViewPitch(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
viewpitch = MIN(viewpitch + delta, +ANGLE_1*MAX_DN_ANGLE);
|
||||
viewpitch = MIN(viewpitch + delta, screen->GetMaxViewPitch(true));
|
||||
}
|
||||
}
|
||||
else if (delta < 0)
|
||||
|
|
@ -864,11 +864,11 @@ void R_InterpolateView (player_t *player, fixed_t frac, InterpolationViewer *ivi
|
|||
// Avoid overflowing viewpitch (can happen when a netgame is stalled)
|
||||
if (viewpitch + delta >= viewpitch)
|
||||
{
|
||||
viewpitch = -ANGLE_1*MAX_UP_ANGLE;
|
||||
viewpitch = screen->GetMaxViewPitch(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
viewpitch = MAX(viewpitch + delta, -ANGLE_1*MAX_UP_ANGLE);
|
||||
viewpitch = MAX(viewpitch + delta, screen->GetMaxViewPitch(false));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue