Merge branch 'master' of https://github.com/ZDoom/gzdoom into gzdoom-update-4-12-1
This commit is contained in:
commit
112c6cbccf
90 changed files with 1227 additions and 834 deletions
|
|
@ -156,7 +156,15 @@ CUSTOM_CVAR(Int, am_cheat, 0, 0)
|
|||
|
||||
|
||||
CVAR(Int, am_rotate, 0, CVAR_ARCHIVE);
|
||||
CVAR(Int, am_overlay, 0, CVAR_ARCHIVE);
|
||||
CUSTOM_CVAR(Int, am_overlay, 0, CVAR_ARCHIVE)
|
||||
{
|
||||
// stop overlay if we're told not to use it anymore.
|
||||
if (automapactive && viewactive && (self == 0))
|
||||
{
|
||||
automapactive = false;
|
||||
viewactive = true;
|
||||
}
|
||||
}
|
||||
CVAR(Bool, am_showsecrets, true, CVAR_ARCHIVE);
|
||||
CVAR(Bool, am_showmonsters, true, CVAR_ARCHIVE);
|
||||
CVAR(Bool, am_showitems, true, CVAR_ARCHIVE);
|
||||
|
|
@ -208,19 +216,19 @@ CCMD(am_togglefollow)
|
|||
am_followplayer = !am_followplayer;
|
||||
if (primaryLevel && primaryLevel->automap)
|
||||
primaryLevel->automap->ResetFollowLocation();
|
||||
Printf("%s\n", GStrings(am_followplayer ? "AMSTR_FOLLOWON" : "AMSTR_FOLLOWOFF"));
|
||||
Printf("%s\n", GStrings.GetString(am_followplayer ? "AMSTR_FOLLOWON" : "AMSTR_FOLLOWOFF"));
|
||||
}
|
||||
|
||||
CCMD(am_togglegrid)
|
||||
{
|
||||
am_showgrid = !am_showgrid;
|
||||
Printf("%s\n", GStrings(am_showgrid ? "AMSTR_GRIDON" : "AMSTR_GRIDOFF"));
|
||||
Printf("%s\n", GStrings.GetString(am_showgrid ? "AMSTR_GRIDON" : "AMSTR_GRIDOFF"));
|
||||
}
|
||||
|
||||
CCMD(am_toggletexture)
|
||||
{
|
||||
am_textured = !am_textured;
|
||||
Printf("%s\n", GStrings(am_textured ? "AMSTR_TEXON" : "AMSTR_TEXOFF"));
|
||||
Printf("%s\n", GStrings.GetString(am_textured ? "AMSTR_TEXON" : "AMSTR_TEXOFF"));
|
||||
}
|
||||
|
||||
CCMD(am_setmark)
|
||||
|
|
@ -230,7 +238,7 @@ CCMD(am_setmark)
|
|||
int m = primaryLevel->automap->addMark();
|
||||
if (m >= 0)
|
||||
{
|
||||
Printf("%s %d\n", GStrings("AMSTR_MARKEDSPOT"), m);
|
||||
Printf("%s %d\n", GStrings.GetString("AMSTR_MARKEDSPOT"), m);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -239,7 +247,7 @@ CCMD(am_clearmarks)
|
|||
{
|
||||
if (primaryLevel && primaryLevel->automap && primaryLevel->automap->clearMarks())
|
||||
{
|
||||
Printf("%s\n", GStrings("AMSTR_MARKSCLEARED"));
|
||||
Printf("%s\n", GStrings.GetString("AMSTR_MARKSCLEARED"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue