Skip to content

Commit 5fd7f01

Browse files
committed
clang
1 parent 8c86b91 commit 5fd7f01

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/game/skybox.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ f32 calculate_skybox_scaled_x(s8 player, f32 fov) {
141141

142142
//! double literals are used instead of floats
143143
f32 yawScaled = SCREEN_WIDTH * 360.0 * yaw / (fov * 65536.0);
144+
// Round the scaled yaw. Since yaw is a u16, it doesn't need to check for < 0
144145
f32 scaledX = yawScaled;
145146

146147
if (scaledX > SKYBOX_WIDTH) {

src/port/mods/PortEnhancements.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ void PortEnhancements_Init() {
5858
mirror_mode_init();
5959

6060
// Register event listeners
61-
REGISTER_LISTENER(RenderHud, EVENT_PRIORITY_NORMAL, [](IEvent* event) {
62-
mirror_mode_undo_projection();
63-
});
61+
REGISTER_LISTENER(RenderHud, EVENT_PRIORITY_NORMAL, [](IEvent* event) { mirror_mode_undo_projection(); });
6462

6563
// Register event listeners
6664
REGISTER_LISTENER(PlayerHealthChange, EVENT_PRIORITY_NORMAL, [](IEvent* event) {

src/port/ui/GhostshipMenuEnhancements.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,7 @@ void GhostshipMenu::AddMenuEnhancements() {
230230
AddWidget(path, "Mirrored World", WIDGET_CVAR_CHECKBOX)
231231
.CVar(CVAR_ENHANCEMENT("Modes.MirroredWorld.Mode"))
232232
.RaceDisable(false)
233-
.Options(CheckboxOptions().Tooltip(
234-
"Mirrors the world horizontally. Inverts left/right controls to match."));
233+
.Options(CheckboxOptions().Tooltip("Mirrors the world horizontally. Inverts left/right controls to match."));
235234

236235
path = { "Enhancements", "Cheats", SECTION_COLUMN_1 };
237236
AddSidebarEntry("Enhancements", path.sidebarName, 1);

0 commit comments

Comments
 (0)