Your message dated Tue, 6 Jul 2010 09:40:41 -0500
with message-id <[email protected]>
and subject line Closing sopwith bug #582398
has caused the Debian Bug report #582398,
regarding Sopwith starting level
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
582398: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=582398
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sopwith
Version: 1.7.1

When starting a game of sopwith, there isn't any option to jump to a
higher level of difficulty when playing against the AI. The attached
patch adds the ability to specify a higher level of difficulty from the
command line. For example, applying this patch allows the user to run

sopwith -g2

to begin at difficulty 2. By default, the game begins at level 0 (zero).

This patch also modifies the help screen to let the user know the option
is available.

--- sopwith-1.7.1/src/swinit.c	2003-06-08 15:20:30.000000000 -0300
+++ sopwith-1.7.2/src/swinit.c	2010-05-19 20:15:57.000000000 -0300
@@ -53,6 +53,7 @@
 
 static int savescore;		/* save players score on restart  */
 static BOOL ghost;		/* ghost display flag             */
+static starting_level = 0;
 
 static char helptxt[] =
 "\n"
@@ -67,6 +68,7 @@
 "        -c :  single player against computer\n"
 "        -x :  enable missiles\n"
 "        -q :  begin game with sound off\n"
+"        -g#:  start at level #\n"
 "\n"
 "Video:\n"
 "        -f :  fullscreen\n"
@@ -1034,7 +1036,8 @@
 		++gamenum;
 		savescore = ob->ob_score;
 	} else {
-		gamenum = 0;
+		// gamenum = 0;
+                gamenum = starting_level;
 		savescore = 0;
 
 		// sh 28/10/2001: go back to the title screen
@@ -1108,6 +1111,11 @@
 			c = 1;
 		else if (!strcasecmp(argv[i], "-f"))
 			vid_fullscreen = 1;
+                else if (!strncasecmp(argv[i], "-g", 2))
+                {
+                    sscanf(& (argv[i][2]), "%d", &starting_level);
+                    gamenum = starting_level;
+                }
 		else if (!strcasecmp(argv[i], "-2"))
 			vid_double_size = 1;
 		else if (!strcasecmp(argv[i], "-q"))

--- End Message ---
--- Begin Message ---
Jesse says that his patch has been applied as of upstream version 1.7.2, so
I'm closing this.

KEN

-- 
Kenneth J. Pronovici <[email protected]>
http://www.cedar-solutions.com/

--- End Message ---

Reply via email to