mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 15:22:08 +00:00
- fixed cherry picked commit based on code that didn't get into the maintenance branch.
This commit is contained in:
parent
bbe00562eb
commit
526268a216
1 changed files with 3 additions and 3 deletions
|
@ -333,9 +333,9 @@ DEFINE_ACTION_FUNCTION(DLevelCompatibility, OffsetSectorPlane)
|
|||
PARAM_INT(planeval);
|
||||
PARAM_FLOAT(delta);
|
||||
|
||||
if ((unsigned)sector < self->Level->sectors.Size())
|
||||
if ((unsigned)sector < level.sectors.Size())
|
||||
{
|
||||
sector_t *sec = &self->Level->sectors[sector];
|
||||
sector_t *sec = &level.sectors[sector];
|
||||
secplane_t& plane = sector_t::floor == planeval? sec->floorplane : sec->ceilingplane;
|
||||
plane.ChangeHeight(delta);
|
||||
sec->ChangePlaneTexZ(planeval, delta);
|
||||
|
@ -357,7 +357,7 @@ DEFINE_ACTION_FUNCTION(DLevelCompatibility, AddSectorTag)
|
|||
PARAM_INT(sector);
|
||||
PARAM_INT(tag);
|
||||
|
||||
if ((unsigned)sector < self->Level->sectors.Size())
|
||||
if ((unsigned)sector < level.sectors.Size())
|
||||
{
|
||||
tagManager.AddSectorTag(sector, tag);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue