X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fdefs.qh;h=e12970a9c63d3d912c881170a7c94ddd6a9cfab0;hb=83f281637f0f29ef570789200116efc8149fecbd;hp=9d7421987c1ce254c5ce4da58139214d594a6d53;hpb=92ed00b08d16fb73df84c6aaf5e24cf4fe71d7c5;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index 9d7421987..e12970a9c 100644 --- a/qcsrc/server/defs.qh +++ b/qcsrc/server/defs.qh @@ -146,7 +146,7 @@ void checkSpectatorBlock(entity this); .float alivetime; // time of being alive .float motd_actived_time; // used for both motd and campaign_message -bool nJoinAllowed(entity this, entity ignore); +int nJoinAllowed(entity this, entity ignore); .float spawnshieldtime; .float item_spawnshieldtime; @@ -195,7 +195,7 @@ void FixClientCvars(entity e); float bot_waypoints_for_items; -.float attack_finished_for[Weapons_MAX * MAX_WEAPONSLOTS]; +.float attack_finished_for[REGISTRY_MAX(Weapons) * MAX_WEAPONSLOTS]; .float attack_finished_single[MAX_WEAPONSLOTS]; #if INDEPENDENT_ATTACK_FINISHED #define ATTACK_FINISHED_FOR(ent, w, slot) ((ent).(attack_finished_for[((w) - WEP_FIRST) * MAX_WEAPONSLOTS + (slot)])) @@ -296,7 +296,7 @@ string matchid; bool radar_showennemies; -.float weapon_load[Weapons_MAX]; +.float weapon_load[REGISTRY_MAX(Weapons)]; .int ammo_none; // used by the reloading system, must always be 0 .int clip_load; .int old_clip_load;