X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fmapvoting.qc;h=ceb2cdd07850a884875e4895d71f614e3de7867e;hp=816945d2ab0bc9bbdcb50ef78f11b6f813a50597;hb=e0012447bfce1b551df3dc01b043655aa93dafad;hpb=ff169c9d675521c4e05efe123024cf9703fd4984 diff --git a/qcsrc/server/mapvoting.qc b/qcsrc/server/mapvoting.qc index 816945d2a..ceb2cdd07 100644 --- a/qcsrc/server/mapvoting.qc +++ b/qcsrc/server/mapvoting.qc @@ -591,9 +591,9 @@ void MapVote_Tick() int totalvotes = 0; FOREACH_CLIENT(IS_REAL_CLIENT(it), { // hide scoreboard again - if(it.health != 2342) + if(GetResource(it, RES_HEALTH) != 2342) { - it.health = 2342; + SetResourceExplicit(it, RES_HEALTH, 2342); CS(it).impulse = 0; msg_entity = it;