mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	rulegen:: perform get_code if code is given but no parent_dir
This commit is contained in:
		| @@ -867,7 +867,7 @@ code_t id_at_spin(twalker cw) { | |||||||
| map<code_t, int> code_to_id; | map<code_t, int> code_to_id; | ||||||
|    |    | ||||||
| EX pair<int, int> get_code(tcell *c) { | EX pair<int, int> get_code(tcell *c) { | ||||||
|   if(c->code != MYSTERY) { |   if(c->code != MYSTERY && c->parent_dir != MYSTERY) { | ||||||
|     int bestd = c->parent_dir; |     int bestd = c->parent_dir; | ||||||
|     if(bestd == -1) bestd = 0; |     if(bestd == -1) bestd = 0; | ||||||
|     return {bestd, c->code}; |     return {bestd, c->code}; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue