Linked Portals

Moderator: GZDoom Developers

User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Linked Portals

Post by Graf Zahl »

Code: Select all

static boolean PTR_NoWayTraverse(intercept_t *in)
{
   line_t *ld = in->d.line;                       // This linedef

   return ld->special ||                          // Ignore specials
     !(ld->flags & ML_BLOCKING ||                 // Always blocking
       (P_LineOpening(ld, NULL),                  // Find openings
        openrange <= 0 ||                         // No opening
        openbottom > usething->z+24*FRACUNIT ||   // Too high it blocks
        opentop < usething->z+usething->height)); // Too low it blocks
}
Amazing, how easy it is to make a function with 7 lines of code close to unreadable... :mrgreen:
SoM
Posts: 14
Joined: Tue May 13, 2008 2:01 pm

Re: Linked Portals

Post by SoM »

Graf Zahl wrote:Amazing, how easy it is to make a function with 7 lines of code close to unreadable... :mrgreen:
haha killough was always good for stuff like that. His never ending chains of ?s and :s are quite overwhelming some times.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”