entity LinkDoors_nextent(entity cur, entity near, entity pass)
{
- while((cur = find(cur, classname, pass.classname)) && ((cur.spawnflags & DOOR_DONT_LINK && !Q3COMPAT_COMMON) || cur.enemy))
- while((cur = find(cur, classname, pass.classname))
++ while((cur = find(cur, classname, pass.classname))
+ && (((cur.spawnflags & DOOR_DONT_LINK) && !Q3COMPAT_COMMON)
+ || cur.enemy))
{
}
return cur;
return; // already linked by another door
// Q3 door linking is done for teamed doors only and is not affected by spawnflags or bmodel proximity
- if ((this.spawnflags & DOOR_DONT_LINK && !Q3COMPAT_COMMON) || (Q3COMPAT_COMMON && !this.team))
- if (((this.spawnflags & DOOR_DONT_LINK) && !Q3COMPAT_COMMON)
++ if (((this.spawnflags & DOOR_DONT_LINK) && !Q3COMPAT_COMMON)
+ || (Q3COMPAT_COMMON && !this.team))
{
this.owner = this.enemy = this;