diff --git a/source/games/duke/src/premap.cpp b/source/games/duke/src/premap.cpp index 35a6e6ca2..10891de9e 100644 --- a/source/games/duke/src/premap.cpp +++ b/source/games/duke/src/premap.cpp @@ -858,7 +858,6 @@ static int LoadTheMap(MapRecord *mi, struct player_struct *p, int gamemode) allignwarpelevators(); resetpspritevars(gamemode); - if (!r_precache) return 0; if (isRR()) cacheit_r(); else cacheit_d(); return 0; } diff --git a/source/games/duke/src/premap_d.cpp b/source/games/duke/src/premap_d.cpp index c484017cd..2d1c9f61a 100644 --- a/source/games/duke/src/premap_d.cpp +++ b/source/games/duke/src/premap_d.cpp @@ -232,6 +232,7 @@ static void cachegoodsprites(void) void cacheit_d(void) { + if (!r_precache) return; int i; cachegoodsprites();