Skip to content

Don't Copy mobj->dontdrawforviewmobj To MT_OVERLAYs

Zwip-Zwap Zapony requested to merge Zwip-Zwap_Zapony/SRB2:dodrawforviewmobj into next

!2014 (merged) introduced mobj->drawonlyforplayer and mobj->dontdrawforviewmobj variables, to control per-player object visibility.

This merge request simply makes it so that MT_OVERLAY mobjs don't copy their target's dontdrawforviewmobj value every tic (or at all), making it easier to have an overlay with a different dontdrawforviewmobj value if desired.
Reasoning: I just didn't like it. But, equally importantly, MT_OVERLAYs already don't copy their target's drawonlyforplayer (because Tailsbot's flight indicator needs a different drawonlyforplayer value than Tailsbot themselves) - and then, why copy "only one" of these variables, instead of both (not an option) or neither?

-

TL;DR: MT_OVERLAYs no longer copy their target's dontdrawforviewmobj value

Merge request reports

Loading