From 041a9e11fe7a0d39982047c1b1ed07ee955a6b03 Mon Sep 17 00:00:00 2001 From: ? Date: Thu, 28 Feb 2019 15:06:42 +0100 Subject: [PATCH] shots:: added some missing guards, -animrecord and -animrec were the same option --- screenshot.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/screenshot.cpp b/screenshot.cpp index 8fcd2a53..2c0c9c9d 100644 --- a/screenshot.cpp +++ b/screenshot.cpp @@ -939,16 +939,19 @@ int readArgs() { using namespace arg; if(0) ; +#if CAP_ANIMATIONS else if(argis("-animmenu")) { PHASE(3); showstartmenu = false; pushScreen(show); } else if(argis("-animperiod")) { PHASE(2); shift_arg_formula(period); } - else if(argis("-animrecord")) { +#if CAP_SHOT + else if(argis("-animrecord") || argis("-animrec")) { PHASE(3); shift(); noframes = argi(); shift(); animfile = args(); record_animation(); } +#endif else if(argis("-animcircle")) { PHASE(3); start_game(); ma = maCircle; @@ -989,13 +992,7 @@ int readArgs() { else if(argis("-animj")) { shift(); joukowsky_anim = true; } - else if(argis("-animrec")) { - PHASE(3); - shift(); noframes = argi(); - shift(); animfile = args(); - record_animation(); - } - +#endif else return 1; return 0; }