Registry: use BITS everywhere
authorTimePath <andrew.hardaker1995@gmail.com>
Sat, 31 Oct 2015 09:53:05 +0000 (20:53 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Sat, 31 Oct 2015 09:53:05 +0000 (20:53 +1100)
18 files changed:
qcsrc/client/hud.qh
qcsrc/common/buffs/all.qh
qcsrc/common/command/all.qh
qcsrc/common/deathtypes/all.qh
qcsrc/common/effects/all.qh
qcsrc/common/effects/effectinfo.qc
qcsrc/common/items/all.qh
qcsrc/common/mapinfo.qh
qcsrc/common/minigames/cl_minigames.qh
qcsrc/common/minigames/sv_minigames.qh
qcsrc/common/models/all.qh
qcsrc/common/monsters/all.qh
qcsrc/common/mutators/mutator/waypoints/all.qh
qcsrc/common/nades/all.qh
qcsrc/common/turrets/all.qh
qcsrc/common/vehicles/all.qh
qcsrc/lib/net.qh
qcsrc/menu/gamesettings.qh

index ba9cb171e915a6c4ec81c830cabbc83615531b29..95a80a9eedf328c79aae6b65e44f6158dfe6f485 100644 (file)
@@ -6,7 +6,7 @@
 bool HUD_Radar_Clickable();
 void HUD_Radar_Mouse();
 
-REGISTRY(hud_panels, 24)
+REGISTRY(hud_panels, BITS(6))
 REGISTER_REGISTRY(Registerhud_panels)
 
 #define REGISTER_HUD_PANEL(id, draw_func, name, configflags, showflags) \
index 709903470576ecc64ac342d61f2c3e4a3b994899..450917390a3615a14dc0add6638ef172acf36f7a 100644 (file)
@@ -8,7 +8,7 @@
 #include "../teams.qh"
 #include "../util.qh"
 
-REGISTRY(Buffs, BIT(4))
+REGISTRY(Buffs, BITS(4))
 REGISTER_REGISTRY(RegisterBuffs)
 
 #define REGISTER_BUFF(id) \
index 756b36d5987ad3debe1b873d951845d6670bc163..d1164f11ada6029b931fe3f4fddd17391b36a388 100644 (file)
@@ -2,7 +2,7 @@
 #define COMMON_COMMANDS_ALL_H
 
 #include "command.qh"
-REGISTRY(GENERIC_COMMANDS, 50)
+REGISTRY(GENERIC_COMMANDS, BITS(7))
 REGISTER_REGISTRY(RegisterGENERIC_COMMANDS)
 REGISTRY_SORT(GENERIC_COMMANDS, m_name, 0)
 
index 4558255fc778b1c91dda6cf7ee47d14c5c5387e9..9562ab7868c73c696cb1d0526c93461c0afafafd 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "../notifications.qh"
 
-REGISTRY(Deathtypes, 100)
+REGISTRY(Deathtypes, BITS(8))
 REGISTER_REGISTRY(RegisterDeathtypes)
 
 .entity death_msgself;
index 9d95733cdf96e10666fd29ad26ead9f0b0d3d6bb..39c67dc9628bdd9c9c3d9ffc057e4427d3fa55fd 100644 (file)
@@ -10,7 +10,7 @@ void Send_Effect(entity eff, vector eff_loc, vector eff_vel, int eff_cnt);
 void Send_Effect_(string eff_name, vector eff_loc, vector eff_vel, int eff_cnt);
 #endif
 
-REGISTRY(Effects, BIT(8))
+REGISTRY(Effects, BITS(8))
 REGISTER_REGISTRY(RegisterEffects)
 #define EFFECT(istrail, name, realname) \
     REGISTER(RegisterEffects, EFFECT, Effects, name, m_id, Create_Effect_Entity(realname, istrail));
index deff4dc1563ba74d61d0ba3f7abf912a1d3466d1..f85ad06b127f1063ce7f9919129cd1c5520ca17c 100644 (file)
@@ -319,7 +319,7 @@ GENERIC_COMMAND(dumpeffectinfo, "Dump all effectinfo to effectinfo_dump.txt")
 }
 
 
-REGISTRY(EffectInfos, BIT(9))
+REGISTRY(EffectInfos, BITS(9))
 REGISTER_REGISTRY(RegisterEffectInfos)
 #define EFFECTINFO(name) \
     [[accumulate]] void effectinfo_##name(EffectInfoGroup parent, EffectInfo this) { } \
index 37e417a63f27f97b5f9020cec17ee2348839fee8..4d76aa3386dfb8cd54b0ad104f07017df9554a14 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "item.qh"
 
-REGISTRY(Items, BIT(5))
+REGISTRY(Items, BITS(5))
 REGISTER_REGISTRY(RegisterItems)
 /** If you register a new item, make sure to add it to all.inc */
 #define REGISTER_ITEM(id, class) REGISTER(RegisterItems, ITEM, Items, id, m_id, NEW(class))
index 4107290fc0ee97d387b204e43795de8a6269eec5..3466d7ee32d2b2ff44001bd8def131b7995c03e7 100644 (file)
@@ -42,7 +42,7 @@ CLASS(Gametype, Object)
     }
 ENDCLASS(Gametype)
 
-REGISTRY(Gametypes, BIT(4))
+REGISTRY(Gametypes, BITS(4))
 REGISTER_REGISTRY(RegisterGametypes)
 int MAPINFO_TYPE_ALL;
 #define REGISTER_GAMETYPE(hname, sname, g_name, NAME, gteamplay, mutators, defaults, gdescription)          \
index 016e8a3edf1932665942c13930653246934556a9..50eb5b42d33f69e4b7bde77248526f1e59ececd0 100644 (file)
@@ -114,7 +114,7 @@ void HUD_MinigameMenu_CustomEntry(entity parent, string message, string event_ar
        while( (entityvar = findentity(entityvar,owner,active_minigame)) )
 
 
-REGISTRY(Minigames, BIT(3))
+REGISTRY(Minigames, BITS(3))
 REGISTER_REGISTRY(RegisterMinigames)
 #define REGISTER_MINIGAME(name,nicename) \
     REGISTER(RegisterMinigames, MINIGAME, Minigames, name, m_id, spawn()); \
index e36d690d9bc743247aabbc104a3f7971e6e24b5a..af23fd19323fe270d8601e51bc6050ba7f9f7b75 100644 (file)
@@ -46,7 +46,7 @@ entity minigame_sessions;
 
 bool minigame_SendEntity(entity this, entity to, int sf);
 
-REGISTRY(Minigames, BIT(3))
+REGISTRY(Minigames, BITS(3))
 REGISTER_REGISTRY(RegisterMinigames)
 #define REGISTER_MINIGAME(name,nicename) \
     REGISTER(RegisterMinigames, MINIGAME, Minigames, name, m_id, spawn()); \
index a7ab9088079f8914e35f12d8bddb7be67a9b6d0b..ed8a31a0dd2e82b9d04c8ea7f4e2af3c3d33606a 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "model.qh"
 
-REGISTRY(Models, BIT(9))
+REGISTRY(Models, BITS(9))
 REGISTER_REGISTRY(RegisterModels)
 
 #define MODEL(name, path) \
index 05eb4346db90d2cf958358410ec2d02e5546879a..72861f9d236eea06b46e4a44879e5598f42f5fd3 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "monster.qh"
 
-REGISTRY(Monsters, BIT(4))
+REGISTRY(Monsters, BITS(4))
 REGISTER_REGISTRY(RegisterMonsters)
 const int MON_FIRST = 1;
 #define MON_LAST (Monsters_COUNT - 1)
index f7fd03837d46449f3d28df90dbe615aeade36813..27797b7f4c05986f084214c76915558890a7c5df 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "waypointsprites.qh"
 
-REGISTRY(Waypoints, BIT(6))
+REGISTRY(Waypoints, BITS(6))
 REGISTER_REGISTRY(RegisterWaypoints)
 /** If you register a new waypoint, make sure to add it to all.inc */
 #define REGISTER_WAYPOINT_(id, init) REGISTER(RegisterWaypoints, WP, Waypoints, id, m_id, init)
index ad51a1e55e3fd73a0a28f56db0f467685df7c472..37c9bee5ff2578d068fcd5a9e9b8b3580c475cc5 100644 (file)
@@ -21,7 +21,7 @@ const int PROJECTILE_NADE_HEAL_BURN = 81;
 const int PROJECTILE_NADE_MONSTER = 82;
 const int PROJECTILE_NADE_MONSTER_BURN = 83;
 
-REGISTRY(Nades, BIT(3))
+REGISTRY(Nades, BITS(4))
 REGISTER_REGISTRY(RegisterNades)
 #define REGISTER_NADE(id) REGISTER(RegisterNades, NADE_TYPE, Nades, id, m_id, NEW(Nade))
 
index 3f9eba4f37d4e942aac5ccdd160dfb226dee42de..fa16be08b2bcf16650880838aba33c7875d8f20e 100644 (file)
@@ -6,7 +6,7 @@
 
 #include "turret.qh"
 
-REGISTRY(Turrets, BIT(5))
+REGISTRY(Turrets, BITS(5))
 REGISTER_REGISTRY(RegisterTurrets)
 
 
index a44eb2209e673768ada5904ab7043e70df5e8273..8a57182f8132757b1a6b4e0f97845c9702406f43 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "vehicle.qh"
 
-REGISTRY(Vehicles, BIT(3))
+REGISTRY(Vehicles, BITS(3))
 REGISTER_REGISTRY(RegisterVehicles)
 const int VEH_FIRST = 1;
 #define VEH_LAST (Vehicles_COUNT - 1)
index c3043806a58837829a475df8b4ebf29100321c83..39c9c8db881402ab4cdd066ad7effecad59775a6 100644 (file)
                }
 #endif
 
-REGISTRY(LinkedEntities, BIT(0))
+REGISTRY(LinkedEntities, BITS(4))
 REGISTER_REGISTRY(RegisterLinkedEntities)
 REGISTRY_SORT(LinkedEntities, netname, 0)
 STATIC_INIT(RegisterLinkedEntities_renumber)
@@ -130,7 +130,7 @@ STATIC_INIT(RegisterLinkedEntities_renumber)
                }
 #endif
 
-REGISTRY(TempEntities, BIT(0))
+REGISTRY(TempEntities, BITS(4))
 REGISTER_REGISTRY(RegisterTempEntities)
 REGISTRY_SORT(TempEntities, netname, 0)
 STATIC_INIT(RegisterTempEntities_renumber)
index cf0916ce9c6168cba438831b1a2bbc2641e564d1..49c5f21dcf92c2cce64a4e3ddcae926f9b89761a 100644 (file)
@@ -4,7 +4,7 @@
 
 #include "xonotic/tab.qc"
 
-REGISTRY(Settings, BIT(3))
+REGISTRY(Settings, BITS(3))
 REGISTER_REGISTRY(RegisterSettings)
 #define REGISTER_SETTINGS(id, impl) \
     LAZY_NEW(id, impl) \