- Fixed: nofreeaim in P_SpawnPlayerMissile() was broken.

SVN r1971 (trunk)
This commit is contained in:
Randy Heit 2009-11-12 01:21:25 +00:00
parent 281b2f5637
commit 4fed0f8057
2 changed files with 5 additions and 0 deletions

View file

@ -1,4 +1,5 @@
November 11, 2009 November 11, 2009
- Fixed: nofreeaim in P_SpawnPlayerMissile() was broken.
- Fixed: MBF sky Y offsets were ignored. X offsets should also be applied to - Fixed: MBF sky Y offsets were ignored. X offsets should also be applied to
the sky cylinder, not the screen like Hexen scrolling skies. the sky cylinder, not the screen like Hexen scrolling skies.

View file

@ -5204,6 +5204,10 @@ AActor *P_SpawnPlayerMissile (AActor *source, fixed_t x, fixed_t y, fixed_t z,
if (linetarget == NULL) if (linetarget == NULL)
{ {
an = angle; an = angle;
if (nofreeaim || !level.IsFreelookAllowed())
{
pitch = 0;
}
} }
if (pLineTarget) *pLineTarget = linetarget; if (pLineTarget) *pLineTarget = linetarget;