this can be static

its unused anyways
also adds plane bounds check which was missing
This commit is contained in:
alufolie91 committed 2026-07-13 07:41:01 +02:00
1 parent 3da59dc2f4
commit 045e46134c
2 files changed
+4 -2

No files matched your search

+4 -1
View File
@@ -272,7 +272,7 @@ static boolean TrimVisplaneBounds(const visplane_t* plane, INT16* start, INT16*
* Applies the necessary offsets and rotation to give
* a depth illusion to the skybox.
*/
void Portal_AddSkybox(const visplane_t* plane)
static void Portal_AddSkybox(const visplane_t* plane)
{
INT16 start, end;
mapheader_t *mh;
@@ -337,6 +337,9 @@ void Portal_AddSkyboxPortals(void)
{
for (pl = visplanes[i]; pl; pl = pl->next)
{
if (pl->minx >= pl->maxx)
continue;
if (pl->picnum == skyflatnum)
{
Portal_AddSkybox(pl);
-1
View File
@@ -58,7 +58,6 @@ void Portal_Add2Lines (const INT32 line1, const INT32 line2, const INT32 x1, con
void Portal_ClipApply (const portal_t* portal);
void Portal_AddSkybox(const visplane_t* plane);
void Portal_AddSkyboxPortals(void);
#ifdef __cplusplus