mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-08 17:22:18 +00:00
Use P_SetTarget here
This commit is contained in:
parent
563233a55f
commit
6303e37fbe
1 changed files with 2 additions and 2 deletions
|
@ -6625,13 +6625,13 @@ void P_SpawnSpecials(boolean fromnetsave)
|
||||||
{
|
{
|
||||||
sectorportal_t *floorportal = P_SectorGetFloorPortalOrCreate(target_sector);
|
sectorportal_t *floorportal = P_SectorGetFloorPortalOrCreate(target_sector);
|
||||||
floorportal->type = SECPORTAL_OBJECT;
|
floorportal->type = SECPORTAL_OBJECT;
|
||||||
floorportal->mobj = mobj;
|
P_SetTarget(&floorportal->mobj, mobj);
|
||||||
}
|
}
|
||||||
if (ceiling)
|
if (ceiling)
|
||||||
{
|
{
|
||||||
sectorportal_t *ceilportal = P_SectorGetCeilingPortalOrCreate(target_sector);
|
sectorportal_t *ceilportal = P_SectorGetCeilingPortalOrCreate(target_sector);
|
||||||
ceilportal->type = SECPORTAL_OBJECT;
|
ceilportal->type = SECPORTAL_OBJECT;
|
||||||
ceilportal->mobj = mobj;
|
P_SetTarget(&ceilportal->mobj, mobj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue