Persist multipliers
This commit is contained in:
parent
3696205f47
commit
961afcd4f4
5
dod.c
5
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user