[Fixed] [4.2.3] MENUDEF: Else not working with IfGame

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

[4.2.3] MENUDEF: Else not working with IfGame

Postby NightFright » Sun Nov 03, 2019 7:19 am

Not sure if this is a bug, but I was wondering why this won't work:

Code: Select allExpand view
IfGame(Chex)
{
   Option "Zorch counter", "fullhud_stats_kills", "LevelStatsPosition", "fullhud_stats_type"
}
Else
{
   Option "Kill counter", "fullhud_stats_kills", "LevelStatsPosition", "fullhud_stats_type"
}

If defined like this in MENUDEF, only Chex will show the "Zorch counter" menu entry while in any other game nothing will be shown at all.

This approach works:
Code: Select allExpand view
IfGame(Doom, Heretic, Hexen)
{
   Option "Kill counter", "fullhud_stats_kills", "LevelStatsPosition", "fullhud_stats_type"
}
IfGame(Chex)
{
   Option "Zorch counter", "fullhud_stats_kills", "LevelStatsPosition", "fullhud_stats_type"
}

Are "else" cases only supported for IfOption maybe?
User avatar
NightFright
Spotlight Team
 
Joined: 02 May 2008
Location: Germany

Re: [4.2.3] MENUDEF: Else not working with IfGame

Postby _mental_ » Sun Nov 03, 2019 9:57 am

Fixed in be8009d.
_mental_
 
 
 
Joined: 07 Aug 2011


Return to Closed Bugs

Who is online

Users browsing this forum: Awario [RSS] and 0 guests