mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 05:23:00 +00:00 
			
		
		
		
	sag:: set RV_INVERSE_WEIGHT flag
This commit is contained in:
		| @@ -366,6 +366,11 @@ namespace sag { | |||||||
|     cost /= 2; |     cost /= 2; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |   void set_inverse() { | ||||||
|  |     if(method == smMatch) vizflags |= RV_INVERSE_WEIGHT; | ||||||
|  |     else vizflags &=~ RV_INVERSE_WEIGHT; | ||||||
|  |     } | ||||||
|  |  | ||||||
|   void reassign() { |   void reassign() { | ||||||
|     int DN = isize(sagid); |     int DN = isize(sagid); | ||||||
|     for(int i=0; i<DN; i++) { |     for(int i=0; i<DN; i++) { | ||||||
| @@ -373,6 +378,7 @@ namespace sag { | |||||||
|       forgetedges(i); |       forgetedges(i); | ||||||
|       } |       } | ||||||
|     shmup::fixStorage(); |     shmup::fixStorage(); | ||||||
|  |     set_inverse(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   void load_sag_solution(const string& fname) { |   void load_sag_solution(const string& fname) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue