mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	fixed a crash when setting new variations
This commit is contained in:
		
							
								
								
									
										10
									
								
								goldberg.cpp
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								goldberg.cpp
									
									
									
									
									
								
							| @@ -698,15 +698,13 @@ EX namespace gp { | |||||||
|     config = human_representation(xy); |     config = human_representation(xy); | ||||||
|     auto g = screens; |     auto g = screens; | ||||||
|     if(xy.first == 0 && xy.second == 0) xy.first = 1; |     if(xy.first == 0 && xy.second == 0) xy.first = 1; | ||||||
|  |     stop_game(); | ||||||
|  |     param = xy; | ||||||
|     if(xy.first == 1 && xy.second == 0) { |     if(xy.first == 1 && xy.second == 0) { | ||||||
|       stop_game(); set_variation(eVariation::pure); |       set_variation(eVariation::pure); | ||||||
|       } |       } | ||||||
|     else if(xy.first == 1 && xy.second == 1 && S3 == 3) { |     else if(xy.first == 1 && xy.second == 1 && S3 == 3) { | ||||||
|       stop_game(); set_variation(eVariation::bitruncated); |       set_variation(eVariation::bitruncated); | ||||||
|       } |  | ||||||
|     else { |  | ||||||
|       param = xy; |  | ||||||
|       stop_game(); set_variation(eVariation::goldberg); |  | ||||||
|       } |       } | ||||||
|     start_game(); |     start_game(); | ||||||
|     screens = g; |     screens = g; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue