mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-20 16:31:03 +00:00
Merge branch 'fix-portals' into 'next'
Fix portals See merge request STJr/SRB2!1724
This commit is contained in:
commit
14cb5415c9
4 changed files with 5 additions and 4 deletions
|
@ -1450,7 +1450,7 @@ static void Mask_Post (maskcount_t* m)
|
||||||
|
|
||||||
void R_RenderPlayerView(player_t *player)
|
void R_RenderPlayerView(player_t *player)
|
||||||
{
|
{
|
||||||
UINT8 nummasks = 1;
|
INT32 nummasks = 1;
|
||||||
maskcount_t* masks = malloc(sizeof(maskcount_t));
|
maskcount_t* masks = malloc(sizeof(maskcount_t));
|
||||||
|
|
||||||
if (cv_homremoval.value && player == &players[displayplayer]) // if this is display player 1
|
if (cv_homremoval.value && player == &players[displayplayer]) // if this is display player 1
|
||||||
|
|
|
@ -132,6 +132,7 @@ static portal_t* Portal_Add (const INT16 x1, const INT16 x2)
|
||||||
|
|
||||||
void Portal_Remove (portal_t* portal)
|
void Portal_Remove (portal_t* portal)
|
||||||
{
|
{
|
||||||
|
portalcullsector = NULL;
|
||||||
portal_base = portal->next;
|
portal_base = portal->next;
|
||||||
Z_Free(portal->ceilingclip);
|
Z_Free(portal->ceilingclip);
|
||||||
Z_Free(portal->floorclip);
|
Z_Free(portal->floorclip);
|
||||||
|
|
|
@ -3186,10 +3186,10 @@ static void R_DrawMaskedList (drawnode_t* head)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void R_DrawMasked(maskcount_t* masks, UINT8 nummasks)
|
void R_DrawMasked(maskcount_t* masks, INT32 nummasks)
|
||||||
{
|
{
|
||||||
drawnode_t *heads; /**< Drawnode lists; as many as number of views/portals. */
|
drawnode_t *heads; /**< Drawnode lists; as many as number of views/portals. */
|
||||||
SINT8 i;
|
INT32 i;
|
||||||
|
|
||||||
heads = calloc(nummasks, sizeof(drawnode_t));
|
heads = calloc(nummasks, sizeof(drawnode_t));
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ typedef struct
|
||||||
sector_t* viewsector;
|
sector_t* viewsector;
|
||||||
} maskcount_t;
|
} maskcount_t;
|
||||||
|
|
||||||
void R_DrawMasked(maskcount_t* masks, UINT8 nummasks);
|
void R_DrawMasked(maskcount_t* masks, INT32 nummasks);
|
||||||
|
|
||||||
// ----------
|
// ----------
|
||||||
// VISSPRITES
|
// VISSPRITES
|
||||||
|
|
Loading…
Reference in a new issue