X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmapvoting.qc;h=eec081075d867e4242ed3fb9cb0330df6dcdb470;hb=5d929ee0b1dc587e3154a4fa4b56e83b9ba9100b;hp=5c564d56db45fc7baeabeb9c6fd22240cc4263df;hpb=86c4f57358c37c4165945b1c99840aa447b50000;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/mapvoting.qc b/qcsrc/server/mapvoting.qc index 5c564d56d..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(GetResourceAmount(it, RESOURCE_HEALTH) != 2342) + if(GetResource(it, RES_HEALTH) != 2342) { - SetResourceAmountExplicit(it, RESOURCE_HEALTH, 2342); + SetResource(it, RES_HEALTH, 2342); CS(it).impulse = 0; msg_entity = it;