X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmapvoting.qc;h=eec081075d867e4242ed3fb9cb0330df6dcdb470;hb=5d929ee0b1dc587e3154a4fa4b56e83b9ba9100b;hp=816945d2ab0bc9bbdcb50ef78f11b6f813a50597;hpb=89f405ba71d1c354dca27a0af246f04fb9ec42e6;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/mapvoting.qc b/qcsrc/server/mapvoting.qc index 816945d2a..eec081075 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; + SetResource(it, RES_HEALTH, 2342); CS(it).impulse = 0; msg_entity = it;