From 961afcd4f4afaebc9b02d0c89b878d1f3c78a402 Mon Sep 17 00:00:00 2001 From: Abdelrahman Said Date: Sat, 24 May 2025 01:35:37 +0100 Subject: [PATCH] Persist multipliers --- dod.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dod.c b/dod.c index 83d41b9..5d74a2f 100644 --- a/dod.c +++ b/dod.c @@ -184,9 +184,10 @@ void zero_velocity(Velocity *velocity, XOR256State *state) { } void update_positions(u8 *tags, Rect *rects, Velocity *velocities, u64 count, f32 delta) { - u8 index = 0; - f32 multipliers[2] = {1.0f, 0.5f}; + persistent f32 multipliers[2] = {1.0f, 0.5f}; persistent u64 inside_zone_mask = 0x7; + + u8 index = 0; f32 pos_x, pos_y; f32 max_x, max_y;