mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-22 09:11:21 +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,7 +67,8 @@ void T_MoveCeiling(ceiling_t *ceiling)
|
|||
switch (ceiling->type)
|
||||
{
|
||||
case instantMoveCeilingByFrontSector:
|
||||
ceiling->sector->ceilingpic = ceiling->texture;
|
||||
if (ceiling->texture > -1) // flat changing
|
||||
ceiling->sector->ceilingpic = ceiling->texture;
|
||||
ceiling->sector->ceilingdata = NULL;
|
||||
ceiling->sector->ceilspeed = 0;
|
||||
P_RemoveThinker(&ceiling->thinker);
|
||||
|
@ -185,7 +186,8 @@ void T_MoveCeiling(ceiling_t *ceiling)
|
|||
break;
|
||||
|
||||
case instantMoveCeilingByFrontSector:
|
||||
ceiling->sector->ceilingpic = ceiling->texture;
|
||||
if (ceiling->texture > -1) // flat changing
|
||||
ceiling->sector->ceilingpic = ceiling->texture;
|
||||
ceiling->sector->ceilingdata = NULL;
|
||||
ceiling->sector->ceilspeed = 0;
|
||||
P_RemoveThinker(&ceiling->thinker);
|
||||
|
|
Loading…
Reference in a new issue