Skip to content

Commit

Permalink
weather file caching seems broken, disable it
Browse files Browse the repository at this point in the history
  • Loading branch information
TwelveEyes committed Jun 26, 2024
1 parent 2b4f44d commit 0e93e60
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions code/rd-vanilla/tr_WorldEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -676,13 +676,13 @@ class COutside
return f;
}

ri.Printf( PRINT_WARNING, "( Cached weather file \"%s\" out of date, regenerating... )\n",GenCachedWeatherFilename());
// ri.Printf( PRINT_WARNING, "( Cached weather file \"%s\" out of date, regenerating... )\n",GenCachedWeatherFilename());
ri.FS_FCloseFile( f );
}
else
/* else
{
ri.Printf( PRINT_WARNING, "( No cached weather file found, generating... )\n");
}
} */

return 0;
}
Expand Down Expand Up @@ -729,7 +729,7 @@ class COutside
AddWeatherZone(tr.world->bmodels[0].bounds[0], tr.world->bmodels[0].bounds[1]);
}

f = WriteCachedWeatherFile();
// f = WriteCachedWeatherFile();

// Iterate Over All Weather Zones
//--------------------------------
Expand Down Expand Up @@ -789,18 +789,18 @@ class COutside
}// for (q)
}// for (z)

if (f)
/* if (f)
{
mWeatherZones[ zone ].WriteToDisk( f );
}
} */
}
}

if (f)
/* if (f)
{
ri.FS_FCloseFile(f);
f=0; // not really necessary, but wtf.
}
} */

// If no indoor or outdoor brushes were found
//--------------------------------------------
Expand Down

0 comments on commit 0e93e60

Please sign in to comment.