mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	shots:: added some missing guards, -animrecord and -animrec were the same option
This commit is contained in:
		| @@ -939,16 +939,19 @@ int readArgs() { | |||||||
|   using namespace arg; |   using namespace arg; | ||||||
|             |             | ||||||
|   if(0) ; |   if(0) ; | ||||||
|  | #if CAP_ANIMATIONS | ||||||
|   else if(argis("-animmenu")) { |   else if(argis("-animmenu")) { | ||||||
|     PHASE(3); showstartmenu = false; pushScreen(show); |     PHASE(3); showstartmenu = false; pushScreen(show); | ||||||
|     } |     } | ||||||
|   else if(argis("-animperiod")) { |   else if(argis("-animperiod")) { | ||||||
|     PHASE(2); shift_arg_formula(period); |     PHASE(2); shift_arg_formula(period); | ||||||
|     } |     } | ||||||
|   else if(argis("-animrecord")) { | #if CAP_SHOT | ||||||
|  |   else if(argis("-animrecord") || argis("-animrec")) { | ||||||
|     PHASE(3); shift(); noframes = argi(); |     PHASE(3); shift(); noframes = argi(); | ||||||
|     shift(); animfile = args(); record_animation(); |     shift(); animfile = args(); record_animation(); | ||||||
|     } |     } | ||||||
|  | #endif | ||||||
|   else if(argis("-animcircle")) { |   else if(argis("-animcircle")) { | ||||||
|     PHASE(3); start_game(); |     PHASE(3); start_game(); | ||||||
|     ma = maCircle;  |     ma = maCircle;  | ||||||
| @@ -989,13 +992,7 @@ int readArgs() { | |||||||
|   else if(argis("-animj")) { |   else if(argis("-animj")) { | ||||||
|     shift(); joukowsky_anim = true; |     shift(); joukowsky_anim = true; | ||||||
|     } |     } | ||||||
|   else if(argis("-animrec")) { | #endif | ||||||
|     PHASE(3); |  | ||||||
|     shift(); noframes = argi(); |  | ||||||
|     shift(); animfile = args(); |  | ||||||
|     record_animation(); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|   else return 1; |   else return 1; | ||||||
|   return 0; |   return 0; | ||||||
|   } |   } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 ?
					?