Group :: Games/Arcade
RPM: xboing
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: init.c.diff
Download
Download
Index: init.c
===================================================================
--- init.c.orig 2006-05-30 12:53:03.000000000 +0200
+++ init.c 2006-05-30 12:53:07.000000000 +0200
@@ -470,12 +470,11 @@
fprintf(stdout, "%s%s",
"Usage: XBoing [-version] [-usage] [-help] [-sync] ",
"[-display <displayName>]\n");
- fprintf(stdout, "%s%s\n%s%s\n%s\n",
- " [-speed <1-9>] [-scores] [-keys] [-sound] [-setup]",
- " [-nosfx]",
- " [-grab] [-maxvol <1-100>] [-startlevel <1-MAX>]",
- " [-usedefcmap]",
- " [-nickname <name>] [-noicon]");
+ fprintf(stdout, "%s\n%s\n%s\n%s\n",
+ " [-speed <1-9>] [-scores] [-keys] [-sound] [-no-sound] [-setup]",
+ " [-nosfx] [-grab] [-no-grab] [-maxvol <1-100>]",
+ " [-startlevel <1-MAX>] [-usedefcmap] [-no-usedefcmap]",
+ " [-nickname <name>] [-noicon] [-debug]");
/* Exit now */
ExitProgramNow(0);
@@ -537,8 +536,8 @@
VERSION, REVNUM + buildNum, c_string);
fprintf(stdout, "Help: \n");
- fprintf(stdout, "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
- " -speed <n> - The game speed, 1 - 9. 9 = fast\n",
+ fprintf(stdout, "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
+ " -speed <n> - The game speed, 1 - 9. 9 = fast (default is 4)\n",
" -maxvol <n> - The maximum volume out of 100%.\n",
" -startlevel <n> - The starting level for game.\n",
" -help - Produce this help message.\n",
@@ -547,14 +546,17 @@
" -version - Print out the current version.\n",
" -scores - Print out the current highscores.\n",
" -keys - Use keys instead of mouse control.\n",
- " -sound - Turn audio ON for game.\n",
+ " -sound - Turn audio ON for game (default).\n",
+ " -no-sound - Turn audio OFF for game.\n",
" -setup - Print setup information.\n",
" -nosfx - Do not use some special effects.\n",
" -grab - Turn ON pointer grab.\n",
- " -usedefcmap - Use the default colourmap.\n",
- " -nickname <name> - Use nickname instead of real name.\n",
+ " -usedefcmap - Use the default colourmap (default).\n",
+ " -no-usedefcmap - Do not use the default colourmap.\n",
+ " -nickname <name> - Use nickname instead of real name.\n",
" -noicon - Do not create a custom icon.\n",
- " -display <display> - Set the display for the game.\n");
+ " -display <display> - Set the display for the game.\n",
+ " -debug - Turn debug messages on (use with -sync, please).\n");
/* Exit now */
ExitProgramNow(0);
@@ -598,14 +600,14 @@
/* Initialise some variables */
syncOn = False;
debug = False;
- grabPointer = False;
- useDefaultColourmap = False;
+ grabPointer = True;
+ useDefaultColourmap = True;
/* This will force the use of the users real name */
SetNickName("");
/* The audio is off by default */
- noSound = True;
+ noSound = False;
noicon = False;
/* So the audio code will use system default */
@@ -616,7 +618,7 @@
SetLevelNumber(1);
/* Average Speed */
- SetUserSpeed(5);
+ SetUserSpeed(6);
useSpecialEffects(True);
score = 0L;
@@ -694,6 +696,12 @@
DEBUG("Sound turned on.")
+ } else if (!compareArgument(argv[i], "-no-sound", 7))
+ {
+ /* Enable the sound in the game */
+ noSound = True;
+
+ DEBUG("Sound turned on.")
} else if (!compareArgument(argv[i], "-keys", 4))
{
/* Set the paddle control mode to use keys */
@@ -726,6 +734,13 @@
DEBUG("Pointer grabbing turned on.")
+ } else if (!compareArgument(argv[i], "-no-grab", 7))
+ {
+ /* Turn off pointer grabbing */
+ grabPointer = False;
+
+ DEBUG("Pointer grabbing turned on.")
+
} else if (!compareArgument(argv[i], "-nickname", 8))
{
/* Use a nick name instead of real name */
@@ -751,6 +766,12 @@
DEBUG("Using default colourmap please.")
+ } else if (!compareArgument(argv[i], "-no-usedefcmap", 13))
+ {
+ /* Try to use the default colourmap */
+ useDefaultColourmap = False;
+
+ DEBUG("Using default colourmap please.")
} else if (!compareArgument(argv[i], "-speed", 5))
{
/* Set the speed for the game */
@@ -936,7 +957,7 @@
char str[80];
/* Setup the default speed for game */
- SetUserSpeed(5);
+ SetUserSpeed(6);
/* Set the paddle control mode to mouse */
SetPaddleControlMode(CONTROL_MOUSE);