mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-19 16:01:35 +00:00
Make new thinker loading functions set floordata/ceilingdata where necessary
This commit is contained in:
parent
3cd8f62ae9
commit
c026b707ce
1 changed files with 25 additions and 0 deletions
|
@ -2892,6 +2892,10 @@ static thinker_t* LoadBounceCheeseThinker(actionf_p1 thinker)
|
||||||
ht->floorwasheight = READFIXED(save_p);
|
ht->floorwasheight = READFIXED(save_p);
|
||||||
ht->ceilingwasheight = READFIXED(save_p);
|
ht->ceilingwasheight = READFIXED(save_p);
|
||||||
ht->low = READCHAR(save_p);
|
ht->low = READCHAR(save_p);
|
||||||
|
|
||||||
|
if (ht->sector)
|
||||||
|
ht->sector->ceilingdata = ht;
|
||||||
|
|
||||||
return &ht->thinker;
|
return &ht->thinker;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2909,6 +2913,13 @@ static thinker_t* LoadContinuousFallThinker(actionf_p1 thinker)
|
||||||
ht->floorstartheight = READFIXED(save_p);
|
ht->floorstartheight = READFIXED(save_p);
|
||||||
ht->ceilingstartheight = READFIXED(save_p);
|
ht->ceilingstartheight = READFIXED(save_p);
|
||||||
ht->destheight = READFIXED(save_p);
|
ht->destheight = READFIXED(save_p);
|
||||||
|
|
||||||
|
if (ht->sector)
|
||||||
|
{
|
||||||
|
ht->sector->ceilingdata = ht;
|
||||||
|
ht->sector->floordata = ht;
|
||||||
|
}
|
||||||
|
|
||||||
return &ht->thinker;
|
return &ht->thinker;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2926,6 +2937,13 @@ static thinker_t* LoadMarioBlockThinker(actionf_p1 thinker)
|
||||||
ht->floorstartheight = READFIXED(save_p);
|
ht->floorstartheight = READFIXED(save_p);
|
||||||
ht->ceilingstartheight = READFIXED(save_p);
|
ht->ceilingstartheight = READFIXED(save_p);
|
||||||
ht->tag = READINT16(save_p);
|
ht->tag = READINT16(save_p);
|
||||||
|
|
||||||
|
if (ht->sector)
|
||||||
|
{
|
||||||
|
ht->sector->ceilingdata = ht;
|
||||||
|
ht->sector->floordata = ht;
|
||||||
|
}
|
||||||
|
|
||||||
return &ht->thinker;
|
return &ht->thinker;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2960,6 +2978,13 @@ static thinker_t* LoadThwompThinker(actionf_p1 thinker)
|
||||||
ht->delay = READINT32(save_p);
|
ht->delay = READINT32(save_p);
|
||||||
ht->tag = READINT16(save_p);
|
ht->tag = READINT16(save_p);
|
||||||
ht->sound = READUINT16(save_p);
|
ht->sound = READUINT16(save_p);
|
||||||
|
|
||||||
|
if (ht->sector)
|
||||||
|
{
|
||||||
|
ht->sector->ceilingdata = ht;
|
||||||
|
ht->sector->floordata = ht;
|
||||||
|
}
|
||||||
|
|
||||||
return &ht->thinker;
|
return &ht->thinker;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue