ref: e8ad50b8fb2c69710f945a5bdfe2cf046f535261
parent: 23c7d01a5a2a4f4a804ebe36c63e079f80c97fbb
author: mfrancis95 <mikefrancis95@gmail.com>
date: Sun Jun 2 22:45:39 EDT 2019
Always try to load SKY3 when starting a new game in Doom II (resolve #921)
--- a/src/doom/g_game.c
+++ b/src/doom/g_game.c
@@ -1866,12 +1866,13 @@
if (gamemode == commercial)
{
- if (gamemap < 12)
- skytexturename = "SKY1";
- else if (gamemap < 21)
- skytexturename = "SKY2";
- else
- skytexturename = "SKY3";
+ skytexturename = DEH_String("SKY3");
+ skytexture = R_TextureNumForName(skytexturename);
+ if (gamemap < 21)
+ {
+ skytexturename = DEH_String(gamemap < 12 ? "SKY1" : "SKY2");
+ skytexture = R_TextureNumForName(skytexturename);
+ }
}
else
{
@@ -1891,12 +1892,9 @@
skytexturename = "SKY4";
break;
}
+ skytexturename = DEH_String(skytexturename);
+ skytexture = R_TextureNumForName(skytexturename);
}
-
- skytexturename = DEH_String(skytexturename);
-
- skytexture = R_TextureNumForName(skytexturename);
-
G_DoLoadLevel ();
}