]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
func_door: update DOOR_START_OPEN documentation
authorbones_was_here <bones_was_here@xonotic.au>
Fri, 15 Sep 2023 05:57:29 +0000 (15:57 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 15 Sep 2023 07:11:41 +0000 (17:11 +1000)
qcsrc/common/mapobjects/func/door.qc
qcsrc/common/mapobjects/func/door.qh

index 4e081bfb70308d7ea88d04e87b6af6396e3501b6..8d59c298bed85259af373be9e92a7af164d199fc 100644 (file)
@@ -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;
index f185f4be8fc96e307ae05ee89078b3174396fb44..d760921c96257508e4a82e03cb77c7bac7169f12 100644 (file)
@@ -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!