Skip to content

Commit

Permalink
tr2/input: shift+f7 = toggle wireframe
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Dec 10, 2024
1 parent b7cbc7b commit aa4ba28
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/tr2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- removed unused detail level option
- removed triple buffering option
- removed dither option
- added toggle wireframe option (available with /set console command)
- added toggle wireframe option (available with `/set` console command and with Shift+F7)
- added support for custom levels to enforce values for any config setting (#1846)
- added an option to fix inventory item usage duplication (#1586)
- added optional automatic key/puzzle inventory item pre-selection (#1884)
Expand Down
7 changes: 6 additions & 1 deletion src/tr2/game/shell/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ static void M_TogglePerspectiveCorrection(void)

static void M_ToggleZBuffer(void)
{
g_Config.rendering.enable_zbuffer = !g_Config.rendering.enable_zbuffer;
if (g_Input.slow) {
g_Config.rendering.enable_wireframe =
!g_Config.rendering.enable_wireframe;
} else {
g_Config.rendering.enable_zbuffer = !g_Config.rendering.enable_zbuffer;
}
Overlay_DisplayModeInfo(
g_Config.rendering.enable_zbuffer ? "Z-Buffer On" : "Z-Buffer Off");
Config_Write();
Expand Down

0 comments on commit aa4ba28

Please sign in to comment.