Skip to content
Permalink
Browse files

Merge pull request #1172 from mfrancis95/master

Always try to load SKY3 when starting a new game in Doom II (resolve …
  • Loading branch information...
fabiangreffrath committed Jul 10, 2019
2 parents 6e746bd + e8ad50b commit 2e86d1db221b74df8de8cbdf329eb3aff6146869
Showing with 9 additions and 11 deletions.
  1. +9 −11 src/doom/g_game.c
@@ -1866,12 +1866,13 @@ G_InitNew

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,13 +1892,10 @@ G_InitNew
skytexturename = "SKY4";
break;
}
skytexturename = DEH_String(skytexturename);
skytexture = R_TextureNumForName(skytexturename);
}

skytexturename = DEH_String(skytexturename);

skytexture = R_TextureNumForName(skytexturename);


G_DoLoadLevel ();
}

0 comments on commit 2e86d1d

Please sign in to comment.
You can’t perform that action at this time.