Change piracy opcode option in sfrotz from -p to -P to match the other ports
authorDavid Griffith <dave@661.org>
Sun, 26 Aug 2018 18:55:28 +0000 (11:55 -0700)
committerDavid Griffith <dave@661.org>
Sun, 26 Aug 2018 18:55:28 +0000 (11:55 -0700)
src/sdl/sf_util.c

index f742dfab406649f8e9a4953455955c500515811f..27a238c031042d8ea3d5916c4849c90a2aa09e36 100644 (file)
@@ -126,7 +126,7 @@ static char *infos[] = {
        "-L   use local resources",
        "-o   watch object movement",
        "-O   watch object locating",
-       "-p   alter piracy opcode",
+       "-P   alter piracy opcode",
        "-q   quiet (disable sound)",
        "-r # right margin",
        "-s # random number seed value",
@@ -184,7 +184,7 @@ extern char *optarg;
 extern int optind;
 extern int m_timerinterval;
 
-static char *options = "@:aAb:B:c:f:Fh:iI:l:Lm:N:oOpqr:Rs:S:tTu:vVw:xZ:";
+static char *options = "@:aAb:B:c:f:Fh:iI:l:Lm:N:oOPqr:Rs:S:tTu:vVw:xZ:";
 
 static int limit( int v, int m, int M)
   {
@@ -247,7 +247,7 @@ static void parse_options (int argc, char **argv)
            f_setup.object_movement = 1;
        if (c == 'O')
            f_setup.object_locating = 1;
-       if (c == 'p')
+       if (c == 'P')
            f_setup.piracy = 1;
        if (c == 'r')
            f_setup.right_margin = num;