From: bones_was_here Date: Fri, 15 Sep 2023 05:57:29 +0000 (+1000) Subject: func_door: update DOOR_START_OPEN documentation X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b1c82ec710d2bf115c4181f87c75203039bf2ffe;p=xonotic%2Fxonotic-data.pk3dir.git func_door: update DOOR_START_OPEN documentation --- 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!