From: Freddy Date: Mon, 5 Mar 2018 12:23:28 +0000 (+0100) Subject: Use BIT() macro in door.qh X-Git-Tag: xonotic-v0.8.5~2176^2~50 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2f7778937301c20f00cc8853841757c39f6d3c9a;p=xonotic%2Fxonotic-data.pk3dir.git Use BIT() macro in door.qh --- diff --git a/qcsrc/common/triggers/func/door.qh b/qcsrc/common/triggers/func/door.qh index 84a9d6aa2..93a3eee51 100644 --- a/qcsrc/common/triggers/func/door.qh +++ b/qcsrc/common/triggers/func/door.qh @@ -1,16 +1,16 @@ #pragma once // door constants -const int DOOR_START_OPEN = 1; -const int DOOR_DONT_LINK = 4; -const int DOOR_TOGGLE = 32; +const int DOOR_START_OPEN = BIT(0); +const int DOOR_DONT_LINK = BIT(2); +const int DOOR_TOGGLE = BIT(5); -const int DOOR_NOSPLASH = 256; // generic anti-splashdamage spawnflag +const int DOOR_NOSPLASH = BIT(8); // generic anti-splashdamage spawnflag -const int DOOR_NONSOLID = 1024; +const int DOOR_NONSOLID = BIT(10); -const int SPAWNFLAGS_GOLD_KEY = 8; -const int SPAWNFLAGS_SILVER_KEY = 16; +const int SPAWNFLAGS_GOLD_KEY = BIT(3); +const int SPAWNFLAGS_SILVER_KEY = BIT(4); #ifdef CSQC // stuff for preload