X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fgamemodes%2Fgamemode%2Fkeepaway%2Fcl_keepaway.qc;h=a643ff2dcab19e9605e3da7a9a602f94dc79d07c;hb=d4f27c04bdd086f40ce1d32b75d8eba56b68e0f9;hp=660a5511ec551f9f2e57ef7bc2a2a8a9a3e76f59;hpb=e73e4bd4706f18bb2de0f52fa8beed6ee0e770ce;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/gamemodes/gamemode/keepaway/cl_keepaway.qc b/qcsrc/common/gamemodes/gamemode/keepaway/cl_keepaway.qc index 660a5511e..a643ff2dc 100644 --- a/qcsrc/common/gamemodes/gamemode/keepaway/cl_keepaway.qc +++ b/qcsrc/common/gamemodes/gamemode/keepaway/cl_keepaway.qc @@ -1,5 +1,6 @@ #include "cl_keepaway.qh" +#include #include // Keepaway HUD mod icon @@ -15,8 +16,7 @@ void HUD_Mod_Keepaway(vector pos, vector mySize) float kaball_alpha = blink(0.85, 0.15, 5); - int stat_items = STAT(ITEMS); - int kaball = (stat_items/IT_KEY1) & 1; + int kaball = (STAT(OBJECTIVE_STATUS) & KA_CARRYING); if(kaball != kaball_prevstatus) {