Before making a draft PR I would like to discuss what I made : a (hopefully) working MAPINFO Gameinfo section for lightmode, instead of the map definition. ( IIRC Xaser wrote something about this on Doomworld forums, but I don't know if something like that has been made)
I modified the method getRealLightmode with the following logic:
// The rules are:
// 1) if the map sets a proper light mode, it is taken unconditionally.
// 2) if someone sets a light mode in the gameinfo, this is used.
// 3) if the user sets gl_maplightmode, this is being used.
// 4) if not for 3D use lightmode Doom. This is for the automap where the software light modes do not work
// otherwise use lightmode Doom or software lighting based on user preferences.
and then updated where this method is called.
Being my first C++ contribution I might have got something wrong ( I admit I used Copilot and read some documentation for fixing why I had a nullptr while calling GameInfo->LightmodeFromGameinfo (derp)).
Anyway here my dev branch : https://github.com/LuciferSam8086/gzdoo ... omGameinfo
For testing it just create a MAPINFO with something like that:
Code: Select all
gameinfo
{
lightmode=3
}
So before I make a PR I would like to discuss, and if you want I can make a draft PR and keeping the conversation on Github.
Thank you
