mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Change Scroller Direction (linedef 435): Do not crash on Tag_Find for sidedef scrollers
This commit is contained in:
parent
9ba5a93407
commit
036577402d
1 changed files with 6 additions and 1 deletions
|
|
@ -3234,7 +3234,12 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha
|
|||
continue;
|
||||
|
||||
scroller = (scroll_t *)th;
|
||||
if (!Tag_Find(§ors[scroller->affectee].tags, args[0]))
|
||||
|
||||
const taglist_t* taglist = (scroller->type == sc_side)
|
||||
? &sides[scroller->affectee].line->tags
|
||||
: §ors[scroller->affectee].tags;
|
||||
|
||||
if (!Tag_Find(taglist, args[0]))
|
||||
continue;
|
||||
|
||||
switch (scroller->type)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue