Persist multipliers
This commit is contained in:
		
							
								
								
									
										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) {
 | 
					void update_positions(u8 *tags, Rect *rects, Velocity *velocities, u64 count, f32 delta) {
 | 
				
			||||||
  u8 index = 0;
 | 
					  persistent f32 multipliers[2] = {1.0f, 0.5f};
 | 
				
			||||||
  f32 multipliers[2] = {1.0f, 0.5f};
 | 
					 | 
				
			||||||
  persistent u64 inside_zone_mask = 0x7;
 | 
					  persistent u64 inside_zone_mask = 0x7;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  u8 index = 0;
 | 
				
			||||||
  f32 pos_x, pos_y;
 | 
					  f32 pos_x, pos_y;
 | 
				
			||||||
  f32 max_x, max_y;
 | 
					  f32 max_x, max_y;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user