- check r_precache in all games.

This commit is contained in:
Christoph Oelckers 2021-04-28 22:23:48 +02:00
parent cd1306dd05
commit b65dfb6145
3 changed files with 4 additions and 0 deletions

View file

@ -858,6 +858,7 @@ 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;
}

View file

@ -407,6 +407,7 @@ static void cachegoodsprites(void)
void cacheit_r(void)
{
if (!r_precache) return;
int i;
cachegoodsprites();

View file

@ -36,6 +36,8 @@ void resettiming()
void precache()
{
if (!r_precache) return;
int i;
for (i = 0; i < numsectors; i++)