]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
CTF: fix waypoint healthbar not shown if g_ctf_flag_return_damage is enabled and...
authorterencehill <piuntn@gmail.com>
Wed, 7 Aug 2024 22:18:15 +0000 (00:18 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 7 Aug 2024 22:18:15 +0000 (00:18 +0200)
qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc

index d20aed535c8a943408539810e9da095e20c7967e..7ae8db8600e43a225707165ce5f9e39bc41c0f8a 100644 (file)
@@ -827,7 +827,7 @@ void ctf_CheckFlagReturn(entity flag, int returntype)
        if((flag.ctf_status == FLAG_DROPPED) || (flag.ctf_status == FLAG_PASSING))
        {
                if (flag.wps_flagdropped
-               && (autocvar_g_ctf_flag_return_time || (autocvar_g_ctf_flag_return_damage && autocvar_g_ctf_flag_health)))
+               && (autocvar_g_ctf_flag_return_time || autocvar_g_ctf_flag_return_damage))
                {
                        WaypointSprite_UpdateHealth(flag.wps_flagdropped, GetResource(flag, RES_HEALTH));
                }