mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	fixed a bug in goldberg rebasing
This commit is contained in:
		| @@ -289,6 +289,11 @@ void virtualRebase(cell*& base, T& at, bool tohex, const U& check) { | |||||||
|           newbase = c; |           newbase = c; | ||||||
|           } |           } | ||||||
|         } |         } | ||||||
|  |       if(newbase) { | ||||||
|  |         base = newbase; | ||||||
|  |         at = bestV * at; | ||||||
|  |         } | ||||||
|  |       else at = master_relative(base, true) * at; | ||||||
|       if(tohex && GOLDBERG) { |       if(tohex && GOLDBERG) { | ||||||
|         while(true) { |         while(true) { | ||||||
|           newbase = NULL; |           newbase = NULL; | ||||||
| @@ -306,11 +311,6 @@ void virtualRebase(cell*& base, T& at, bool tohex, const U& check) { | |||||||
|           at = bestV * at; |           at = bestV * at; | ||||||
|           } |           } | ||||||
|         } |         } | ||||||
|       if(newbase) { |  | ||||||
|         base = newbase; |  | ||||||
|         at = bestV * at; |  | ||||||
|         } |  | ||||||
|       else at = master_relative(base, true) * at; |  | ||||||
|       break; |       break; | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue