- SW: Partially revert changes from df0331a4c3.

This commit is contained in:
Mitchell Richters 2020-09-08 20:48:01 +10:00
parent 73d0772e87
commit cb7e797842
2 changed files with 3 additions and 3 deletions

View file

@ -1713,14 +1713,13 @@ struct SECTOR_OBJECTstruct
morph_z_max,
bob_amt, // bob amount max in z coord
// variables set by mappers for drivables
drive_angspeed,
drive_angslide,
drive_speed,
drive_slide,
crush_z,
flags;
fixed_t drive_angspeed;
short sector[MAX_SO_SECTOR], // hold the sector numbers of the sector object
sp_num[MAX_SO_SPRITE], // hold the sprite numbers of the object
xorig[MAX_SO_POINTS], // save the original x & y location of each wall so it can be

View file

@ -1273,7 +1273,8 @@ SetupSectorObject(short sectnum, short tag)
case SO_DRIVABLE_ATTRIB:
sop->drive_angspeed = SP_TAG2(sp) << 21;
sop->drive_angspeed = SP_TAG2(sp);
sop->drive_angspeed <<= 5;
sop->drive_angslide = SP_TAG3(sp);
if (sop->drive_angslide <= 0 || sop->drive_angslide == 32)
sop->drive_angslide = 1;