- fixed: am_restorecolors did not work
This CCMD tried to access the current menu to decide which colors to reset but that is not available at all when this function gets called. It now uses the automap's own CVAR arrays.
This commit is contained in:
parent
58870d4871
commit
3efbf6c74e
2 changed files with 14 additions and 15 deletions
|
|
@ -360,6 +360,20 @@ static FColorCVar *cv_overlay[] = {
|
|||
&am_ovsecretsectorcolor
|
||||
};
|
||||
|
||||
CCMD(am_restorecolors)
|
||||
{
|
||||
for (unsigned i = 0; i < countof(cv_standard); i++)
|
||||
{
|
||||
cv_standard[i]->ResetToDefault();
|
||||
}
|
||||
for (unsigned i = 0; i < countof(cv_overlay); i++)
|
||||
{
|
||||
cv_overlay[i]->ResetToDefault();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#define NOT_USED 1,0,0 // use almost black as indicator for an unused color
|
||||
|
||||
static unsigned char DoomColors[]= {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue