From 664cfa2a9d8fd9da9fba94aa44521a5cabcf8c27 Mon Sep 17 00:00:00 2001 From: toasterbabe Date: Sun, 2 Oct 2016 18:17:23 +0100 Subject: [PATCH] Disabled MF2_LINKDRAW's ability to work in chains because it required modifying flags2 to prevent infinite loops, and that isn't network safe at all. --- src/r_things.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/r_things.c b/src/r_things.c index fb4499c44..e8aa2956f 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -1319,8 +1319,9 @@ static void R_ProjectSprite(mobj_t *thing) if ((thing->flags2 & MF2_LINKDRAW) && thing->tracer) // toast 16/09/16 (SYMMETRY) { - mobj_t *link, *link2; fixed_t linkscale; +#if 0 // support for chains of linkdraw - probably not network safe to modify mobjs during rendering + mobj_t *link, *link2; for (link = thing->tracer; (link->tracer && (link->flags2 & MF2_LINKDRAW)); link = link->tracer) link->flags2 &= ~MF2_LINKDRAW; // to prevent infinite loops, otherwise would just be a ; @@ -1333,6 +1334,10 @@ static void R_ProjectSprite(mobj_t *thing) tr_x = link->x - viewx; tr_y = link->y - viewy; +#else + tr_x = thing->tracer->x - viewx; + tr_y = thing->tracer->y - viewy; +#endif gxt = FixedMul(tr_x, viewcos); gyt = -FixedMul(tr_y, viewsin); tz = gxt-gyt;