mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	rogueviz::flocking:: do not try large steps even if delta way too big
This commit is contained in:
		| @@ -99,8 +99,10 @@ namespace flocking { | ||||
|   int precision = 10; | ||||
|    | ||||
|   void simulate(int delta) { | ||||
|     while(delta > precision && delta < 100 * precision) {  | ||||
|     int iter = 0; | ||||
|     while(delta > precision && iter < 100) {  | ||||
|       simulate(precision); delta -= precision;  | ||||
|       iter++; | ||||
|       }       | ||||
|     ld d = delta / 1000.; | ||||
|     using namespace hyperpoint_vec; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue