From 4d29cd2df23ca20f809afff16c3e721a6cabf1ff Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 8 Apr 2021 13:54:58 +0200 Subject: [PATCH] - I shouldn't have used WT's skies as reference - they got front and back faces swapped. --- source/core/textures/hightile.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/core/textures/hightile.cpp b/source/core/textures/hightile.cpp index e73e72686..36f8e6315 100644 --- a/source/core/textures/hightile.cpp +++ b/source/core/textures/hightile.cpp @@ -299,7 +299,6 @@ int tileSetSkybox(int picnum, int palnum, FString* facenames) HightileReplacement replace = {}; FGameTexture *faces[6]; - const static uint8_t map[] = { 2, 1, 0, 3, 4, 5 }; for (int i = 0; i < 6; i++) { FTextureID texid = TexMan.CheckForTexture(facenames[i], ETextureType::Any); @@ -308,7 +307,7 @@ int tileSetSkybox(int picnum, int palnum, FString* facenames) Printf("%s: Skybox image for tile %d does not exist or is invalid\n", facenames[i].GetChars(), picnum); return -1; } - faces[map[i]] = TexMan.GetGameTexture(texid); + faces[i] = TexMan.GetGameTexture(texid); } FSkyBox* sbtex = new FSkyBox(""); memcpy(sbtex->faces, faces, sizeof(faces));