fix complevel vanilla scrollers (#612)

* fix complevel vanilla scrollers

* disable generalized scrollers in complevel vanilla
This commit is contained in:
Roman Fomin 2022-06-19 00:24:59 +07:00 committed by GitHub
parent 26e067a4b1
commit 646ba345ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2471,10 +2471,10 @@ void P_SpawnSpecials (void)
P_InitTagLists(); // killough 1/30/98: Create xref tables for tags
if (!demo_compatibility)
{
P_SpawnScrollers(); // killough 3/7/98: Add generalized scrollers
if (!demo_compatibility)
{
P_SpawnFriction(); // phares 3/12/98: New friction model using linedefs
P_SpawnPushers(); // phares 3/20/98: New pusher model using linedefs
@ -2707,6 +2707,9 @@ static void P_SpawnScrollers(void)
int control = -1, accel = 0; // no control sector or acceleration
int special = l->special;
if (demo_compatibility && special != 48)
continue;
// killough 3/7/98: Types 245-249 are same as 250-254 except that the
// first side's sector's heights cause scrolling when they change, and
// this linedef controls the direction and speed of the scrolling. The