TheAssemblyArmada / Vanilla-Conquer

Vanilla Conquer provides clean, cross-platform builds of the C&C Remastered Collection and the standalone legacy games.
Other
357 stars 54 forks source link

[TD] Map Editor: F4 to unshroud no longer works (regression) #722

Open Gerwin2k opened 2 years ago

Gerwin2k commented 2 years ago

When starting the internal editor with command "VanillaTD.exe -EDITOR": Pressing the F4 key no longer has any effect. So the shroud remains and most/all of the map is obscured. Making it hard to edit something. F4 still worked in official builds from 19-10-2021 and older, but is broken in 09-12-2021 and later. So somewhere in between that time it changed. Below is the bit that should work, but doesn't.

tiberiandawn\conquer.cpp

#ifdef CHEAT_KEYS
......
    if ((Debug_Flag || Debug_Playtest) && plain == KN_F4) {
        if (GameToPlay == GAME_NORMAL) {
            Debug_Unshroud = (Debug_Unshroud == false);
            Map.Flag_To_Redraw(true);
        }
    }

The F4 key still works in VanillaRA Editor, by the way. Invoked without a dash "VanillaRA.exe EDITOR".

Gerwin2k commented 2 years ago

Okay, by chance I found shroud removal is still working but requires Shift; Shift+F4.

OmniBlade commented 2 years ago

Ideally we would want the functionality to be the same between the game editors so this is still worthy of investigation.