- 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
|
|
@ -2156,13 +2156,11 @@ void P_PlayerThink (player_t *player)
|
|||
player->mo->pitch -= look;
|
||||
if (look > 0)
|
||||
{ // look up
|
||||
if (player->mo->pitch < -ANGLE_1*MAX_UP_ANGLE)
|
||||
player->mo->pitch = -ANGLE_1*MAX_UP_ANGLE;
|
||||
player->mo->pitch = MAX(player->mo->pitch, screen->GetMaxViewPitch(false));
|
||||
}
|
||||
else
|
||||
{ // look down
|
||||
if (player->mo->pitch > ANGLE_1*MAX_DN_ANGLE)
|
||||
player->mo->pitch = ANGLE_1*MAX_DN_ANGLE;
|
||||
player->mo->pitch = MIN(player->mo->pitch, screen->GetMaxViewPitch(true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue