X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Feffects%2Fall.qc;h=1fade55cf0407e59bfcb2735ffb75ccd1a289be5;hp=7ea49bdcb825e666a04c19cc23c7ca7cfb3091ce;hb=90d9f7c775306324957323d53d5a4ad995d999e3;hpb=2ccfbaf3d871db94af3195383a57ff738abaa07a;ds=sidebyside diff --git a/qcsrc/common/effects/all.qc b/qcsrc/common/effects/all.qc index 7ea49bdcb8..1fade55cf0 100644 --- a/qcsrc/common/effects/all.qc +++ b/qcsrc/common/effects/all.qc @@ -4,9 +4,9 @@ REGISTER_NET_TEMP(net_effect) #ifdef CSQC NET_HANDLE(net_effect, bool isNew) { - int net_name = (Effects_COUNT >= 255) ? ReadShort() : ReadByte(); + int net_name = (REGISTRY_COUNT(Effects) >= 255) ? ReadShort() : ReadByte(); - entity eff = Effects_from(net_name); + entity eff = REGISTRY_GET(Effects, net_name); vector vel = '0 0 0'; int eff_cnt = 1; @@ -34,7 +34,7 @@ bool Net_Write_Effect(entity this, entity client, int sf) int channel = MSG_ONE; msg_entity = client; WriteHeader(channel, net_effect); - (Effects_COUNT >= 255) + (REGISTRY_COUNT(Effects) >= 255) ? WriteShort(channel, this.m_id) : WriteByte(channel, this.m_id); WriteVector(channel, this.eent_net_location);