Advertisement
Guest User

Untitled

a guest
Jun 26th, 2013
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.90 KB | None | 0 0
  1. Index: D:/andre/prg/doom/prboom-plus/prboom-plus/src/r_things.c
  2. ===================================================================
  3. --- D:/andre/prg/doom/prboom-plus/prboom-plus/src/r_things.c    (revision 4309)
  4. +++ D:/andre/prg/doom/prboom-plus/prboom-plus/src/r_things.c    (working copy)
  5. @@ -740,8 +740,9 @@
  6.    // killough 4/9/98: clip things which are out of view due to height
  7.    // e6y: fix of hanging decoration disappearing in Batman Doom MAP02
  8.    // centeryfrac -> viewheightfrac
  9. -  if (fz  > viewz + FixedDiv(viewheightfrac, xscale) ||
  10. -      gzt < viewz - FixedDiv(viewheightfrac-viewheight, xscale))
  11. +  // [kb] add +1 so sprites are shown even with the extended freelook
  12. +  if (thing->z > viewz + FixedDiv(viewheight << (FRACBITS + 1), xscale) ||
  13. +    gzt < viewz - FixedDiv((viewheight << (FRACBITS + 1)) - viewheight, xscale))
  14.      return;
  15.  
  16.      // killough 3/27/98: exclude things totally separated
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement