ref: 96e02fdcd7b0623dcea183aa0afd64b3ab5316b0
parent: 3c6de42ce452499062773d64d393aff8bee42a30
author: Jacob Moody <[email protected]>
date: Mon Aug 28 14:55:32 EDT 2023
fix speedometer peaking
--- a/src/wipeout/hud.c
+++ b/src/wipeout/hud.c
@@ -71,7 +71,7 @@
else {
left_color = a->color;
float _za, _zb, _zc, _zd;
- uint8_t _a;
+ float _a;
_a = a->color.as_rgba.r;
_za = _a + (b->color.as_rgba.r - _a) * f;
@@ -93,7 +93,7 @@
float right_h;
{
- uint16_t _a;
+ float _a;
float _za;
_a = a->height;
_za = _a + (b->height - _a) * f;
@@ -104,7 +104,7 @@
vec2i_t bottom_left = vec2i(a->offset.x + 1 - a->height / speedo.skew, a->offset.y + a->height);
vec2i_t top_right, bottom_right;
{
- uint32_t _a;
+ float _a;
float _za, _zb;
_a = a->offset.x + 1;
_za = _a + (b->offset.x - _a) * f;