mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-30 13:21:04 +00:00
- SW: Partially revert changes from df0331a4c3
.
This commit is contained in:
parent
73d0772e87
commit
cb7e797842
2 changed files with 3 additions and 3 deletions
|
@ -1713,14 +1713,13 @@ struct SECTOR_OBJECTstruct
|
||||||
morph_z_max,
|
morph_z_max,
|
||||||
bob_amt, // bob amount max in z coord
|
bob_amt, // bob amount max in z coord
|
||||||
// variables set by mappers for drivables
|
// variables set by mappers for drivables
|
||||||
|
drive_angspeed,
|
||||||
drive_angslide,
|
drive_angslide,
|
||||||
drive_speed,
|
drive_speed,
|
||||||
drive_slide,
|
drive_slide,
|
||||||
crush_z,
|
crush_z,
|
||||||
flags;
|
flags;
|
||||||
|
|
||||||
fixed_t drive_angspeed;
|
|
||||||
|
|
||||||
short sector[MAX_SO_SECTOR], // hold the sector numbers of the sector object
|
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
|
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
|
xorig[MAX_SO_POINTS], // save the original x & y location of each wall so it can be
|
||||||
|
|
|
@ -1273,7 +1273,8 @@ SetupSectorObject(short sectnum, short tag)
|
||||||
|
|
||||||
case SO_DRIVABLE_ATTRIB:
|
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);
|
sop->drive_angslide = SP_TAG3(sp);
|
||||||
if (sop->drive_angslide <= 0 || sop->drive_angslide == 32)
|
if (sop->drive_angslide <= 0 || sop->drive_angslide == 32)
|
||||||
sop->drive_angslide = 1;
|
sop->drive_angslide = 1;
|
||||||
|
|
Loading…
Reference in a new issue