mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-02 06:23:03 +00:00
Instant ceiling movement: Only change texture if it's not -1
This commit is contained in:
parent
6abcba6876
commit
0eabbf0170
1 changed files with 4 additions and 2 deletions
|
@ -67,6 +67,7 @@ void T_MoveCeiling(ceiling_t *ceiling)
|
||||||
switch (ceiling->type)
|
switch (ceiling->type)
|
||||||
{
|
{
|
||||||
case instantMoveCeilingByFrontSector:
|
case instantMoveCeilingByFrontSector:
|
||||||
|
if (ceiling->texture > -1) // flat changing
|
||||||
ceiling->sector->ceilingpic = ceiling->texture;
|
ceiling->sector->ceilingpic = ceiling->texture;
|
||||||
ceiling->sector->ceilingdata = NULL;
|
ceiling->sector->ceilingdata = NULL;
|
||||||
ceiling->sector->ceilspeed = 0;
|
ceiling->sector->ceilspeed = 0;
|
||||||
|
@ -185,6 +186,7 @@ void T_MoveCeiling(ceiling_t *ceiling)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case instantMoveCeilingByFrontSector:
|
case instantMoveCeilingByFrontSector:
|
||||||
|
if (ceiling->texture > -1) // flat changing
|
||||||
ceiling->sector->ceilingpic = ceiling->texture;
|
ceiling->sector->ceilingpic = ceiling->texture;
|
||||||
ceiling->sector->ceilingdata = NULL;
|
ceiling->sector->ceilingdata = NULL;
|
||||||
ceiling->sector->ceilspeed = 0;
|
ceiling->sector->ceilspeed = 0;
|
||||||
|
|
Loading…
Reference in a new issue