X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fent_cs.qc;h=da53f68a0f15d52a06d7522566fe062a4047ad4c;hb=8802dc71a56bfe87db766c6dab331046575f7eb9;hp=a89e84a03725d7f8ff16525ef81faa52e9d81d49;hpb=dfd83905b964f87db1a9b206767a5b207991038a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/ent_cs.qc b/qcsrc/common/ent_cs.qc index a89e84a03..da53f68a0 100644 --- a/qcsrc/common/ent_cs.qc +++ b/qcsrc/common/ent_cs.qc @@ -175,33 +175,26 @@ MACRO_END { int n = ReadByte(); entity e = entcs_receiver(n); - #define X(e) { \ - setthink(e, entcs_think); \ - entcs_receiver(n, e); \ - } if (e == NULL) { if (!this) - { // initial = temp e = new_pure(entcs_receiver); - X(e); - } else - { // initial = linked e = this; - X(e); - } + setthink(e, entcs_think); + entcs_receiver(n, e); } else if (e != this && this) { // upgrade to linked delete(e); e = this; - X(e); + setthink(e, entcs_think); + entcs_receiver(n, e); } - #undef X + InterpolateOrigin_Undo(e); e.sv_entnum = n; int sf = ReadShort();