From 6358a28ddc797fa97262b94d49d92d71eea6a149 Mon Sep 17 00:00:00 2001 From: MegaMech <7255464+MegaMech@users.noreply.github.com> Date: Wed, 20 Nov 2024 17:57:14 -0700 Subject: [PATCH] Fix widescreen 2 --- src/math_util_2.c | 2 +- src/port/ui/ImguiUI.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/math_util_2.c b/src/math_util_2.c index 5f63833d8..1eeaecaef 100644 --- a/src/math_util_2.c +++ b/src/math_util_2.c @@ -721,7 +721,7 @@ void func_80042330_portrait(s32 x, s32 y, u16 angle, f32 scale, s16 lapCount) { Mat4 matrix; //printf("panel %d %d %d\n", x, (s32)OTRGetDimensionFromLeftEdge(x), (s32)OTRGetDimensionFromLeftEdge(0)); - if (gHUDModes != 2 && lapCount < 3) { + if ((gHUDModes != 2) && (D_801657E2 == 0) || (CVarGetInteger("gImprovements", 0) == true)) { if (x < (SCREEN_WIDTH / 2)) { x = (s32)OTRGetDimensionFromLeftEdge(x); } else { diff --git a/src/port/ui/ImguiUI.cpp b/src/port/ui/ImguiUI.cpp index 52a8ca0e3..2284346bb 100644 --- a/src/port/ui/ImguiUI.cpp +++ b/src/port/ui/ImguiUI.cpp @@ -476,12 +476,13 @@ void DrawEnhancementsMenu() { if (UIWidgets::BeginMenu("Gameplay")) { UIWidgets::WindowButton("Freecam", "gFreecam", GameUI::mFreecamWindow, { .tooltip = "Allows you to fly around the course" }); + UIWidgets::CVarCheckbox("No multiplayer feature cuts", "gMultiplayerNoFeatureCuts", + { .tooltip = "Allows full train and jumbotron in multiplayer, etc." }); + UIWidgets::CVarCheckbox("General Improvements", "gImprovements", { .tooltip = "General improvements to the game experience." }); UIWidgets::CVarCheckbox( "No Level of Detail (LOD)", "gDisableLod", { .tooltip = "Disable Level of Detail (LOD) to avoid models using lower poly versions at a distance" }); - UIWidgets::CVarCheckbox("No multiplayer feature cuts", "gMultiplayerNoFeatureCuts", - { .tooltip = "Allows full train and jumbotron in multiplayer, etc." }); UIWidgets::CVarCheckbox("Disable Culling", "gNoCulling", { .tooltip = "Disable original culling of mk64" }); UIWidgets::CVarSliderFloat(