- lock lightmaps behind a command line argument with a warning

This commit is contained in:
Rachael Alexanderson 2022-01-24 13:39:17 -05:00
parent 78c8aa6e62
commit f0c5328481
1 changed files with 5 additions and 0 deletions

View File

@ -83,6 +83,7 @@
#include "vm.h"
#include "texturemanager.h"
#include "hw_vertexbuilder.h"
#include "version.h"
enum
{
@ -3340,6 +3341,10 @@ void MapLoader::LoadLightmap(MapData *map)
Level->LPWidth = 0;
Level->LPHeight = 0;
if (!Args->CheckParm("-enablelightmaps"))
return; // this feature is still too early WIP to allow general access
Printf(PRINT_HIGH, "WARNING! Lightmaps are an experimental feature and are subject to change before being finalized. Do not expect this to work as-is in future releases of %s!\n", GAMENAME);
if (!map->Size(ML_LIGHTMAP))
return;