mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- lock lightmaps behind a command line argument with a warning
This commit is contained in:
parent
78c8aa6e62
commit
f0c5328481
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue