From: terencehill Date: Thu, 10 Nov 2016 18:16:25 +0000 (+0100) Subject: Simplify X-Git-Tag: xonotic-v0.8.2~453 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0013f18f649e9ae28d2d049c09e9c089b7aa88f2;p=xonotic%2Fxonotic-data.pk3dir.git Simplify --- 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();