From b1c82ec710d2bf115c4181f87c75203039bf2ffe Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Fri, 15 Sep 2023 15:57:29 +1000 Subject: [PATCH] func_door: update DOOR_START_OPEN documentation --- qcsrc/common/mapobjects/func/door.qc | 9 +++++---- qcsrc/common/mapobjects/func/door.qh | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/qcsrc/common/mapobjects/func/door.qc b/qcsrc/common/mapobjects/func/door.qc index 4e081bfb7..8d59c298b 100644 --- a/qcsrc/common/mapobjects/func/door.qc +++ b/qcsrc/common/mapobjects/func/door.qc @@ -749,8 +749,9 @@ spawnfunc(func_door) if(this.spawnflags & DOOR_NONSOLID) this.solid = SOLID_NOT; -// DOOR_START_OPEN is to allow an entity to be lighted in the closed position -// but spawn in the open position + // DOOR_START_OPEN is to allow an entity to be lighted in the closed position + // but spawn in the open position + // the tuba door on xoylent requires the delayed init if (this.spawnflags & DOOR_START_OPEN) InitializeEntity(this, door_init_startopen, INITPRIO_SETLOCATION); @@ -777,8 +778,8 @@ spawnfunc(func_door) settouch(this, door_touch); -// LinkDoors can't be done until all of the doors have been spawned, so -// the sizes can be detected properly. + // LinkDoors can't be done until all of the doors have been spawned, so + // the sizes can be detected properly. InitializeEntity(this, LinkDoors, INITPRIO_LINKDOORS); this.reset = door_reset; diff --git a/qcsrc/common/mapobjects/func/door.qh b/qcsrc/common/mapobjects/func/door.qh index f185f4be8..d760921c9 100644 --- a/qcsrc/common/mapobjects/func/door.qh +++ b/qcsrc/common/mapobjects/func/door.qh @@ -4,7 +4,7 @@ bool autocvar_sv_doors_always_open; #endif -const int DOOR_START_OPEN = BIT(0); +const int DOOR_START_OPEN = BIT(0); // has same meaning in Q3: reverse position 1 and 2 const int DOOR_DONT_LINK = BIT(2); const int SPAWNFLAGS_GOLD_KEY = BIT(3); // Quake 1 compat, can only be used with func_door! const int SPAWNFLAGS_SILVER_KEY = BIT(4); // Quake 1 compat, can only be used with func_door! -- 2.39.2