add menu to set notexture

Allows to reset notexture, to set a high-contrast color to find and
fix the areas and to set to a useful default texture.

As useful textures, in addition to rock.jpg and concrete.jpg, the menu
lists the default wall, floor and ceiling textures of the current map,
and also the last watched texture from the texture menu.

Also adds a few checks to detect unconverted map config files and misuse
of the new bright highlight textures.
This commit is contained in:
ac-stef
2016-08-30 22:57:03 +02:00
parent 98605751f4
commit 300d702619
8 changed files with 40 additions and 0 deletions
+2
View File
@@ -113,6 +113,7 @@ void mapmodel(int *rad, int *h, int *zoff, char *scale, char *name)
{
if(*scale && *name) // ignore "mapmodel" commands with insufficient parameters
{
if(!strchr(name, '/') && !strchr(name, '\\')) flagmapconfigerror(LWW_CONFIGERR * 2); // throw errors for unconverted mapmodels (unspecific, because not all get detected)
intret(mapmodels.length());
mapmodelinfo &mmi = mapmodels.add();
mmi.rad = *rad;
@@ -131,6 +132,7 @@ void mapmodel(int *rad, int *h, int *zoff, char *scale, char *name)
mapmodelchanged = 1;
flagmapconfigchange();
}
else flagmapconfigerror(LWW_CONFIGERR * 2);
}
COMMAND(mapmodel, "iiiss");