From c350b7b8ed4eb7f8abee044d3d23a857bf64b462 Mon Sep 17 00:00:00 2001 From: MelonSpeedruns Date: Wed, 22 Apr 2026 13:52:14 -0400 Subject: [PATCH] fix building on linux --- src/f_ap/f_ap_game.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/f_ap/f_ap_game.cpp b/src/f_ap/f_ap_game.cpp index 9550cee06e..9e87acccc7 100644 --- a/src/f_ap/f_ap_game.cpp +++ b/src/f_ap/f_ap_game.cpp @@ -742,12 +742,8 @@ float lerpSpeed = 0.0f; const cXyz duskColor = {50, 50, -50}; const cXyz noColor = {0, 0, 0}; -float lerp(float a, float b, float t) { - return a + t * (b - a); -} - cXyz LerpColor(cXyz a, cXyz b, float t) { - return {lerp(a.x, b.x, t), lerp(a.y, b.y, t), lerp(a.z, b.z, t)}; + return {std::lerp(a.x, b.x, t), std::lerp(a.y, b.y, t), std::lerp(a.z, b.z, t)}; } void FadeLED(cXyz newColor, float speed) {