Permalink
Browse files

* Made options menu a little more straightforward, using "OK" and "Ca…

…ncel" buttons that do what you'd expect.

* Faders no longer write to the config whenever they are used.
* Default button no longer overwrites config, so pressing "Cancel" after "Default" does what you'd expect..
  • Loading branch information...
1 parent a530a4d commit 554287c6c48853c8e8a37af6d1550c93dfcdca45 BTAxis committed Jul 9, 2012
Showing with 169 additions and 135 deletions.
  1. +29 −32 src/conf.c
  2. +41 −0 src/conf.h
  3. +99 −100 src/options.c
  4. +0 −3 src/player_autonav.h
View
61 src/conf.c
@@ -177,12 +177,13 @@ void conf_setDefaults (void)
*/
void conf_setGameplayDefaults (void)
{
- conf.afterburn_sens = 250;
+ conf.afterburn_sens = AFTERBURNER_SENSITIVITY_DEFAULT;
conf.compression_velocity = TIME_COMPRESSION_DEFAULT_MAX;
- conf.compression_mult = 200;
- conf.save_compress = 1;
- conf.mouse_thrust = 1;
- conf.autonav_abort = 1.;
+ conf.compression_mult = TIME_COMPRESSION_DEFAULT_MULT;
+ conf.save_compress = SAVE_COMPRESSION_DEFAULT;
+ conf.mouse_thrust = MOUSE_THRUST_DEFAULT;
+ conf.autonav_abort = AUTONAV_ABORT_DEFAULT;
+ conf.zoom_manual = MANUAL_ZOOM_DEFAULT;
}
@@ -197,18 +198,14 @@ void conf_setAudioDefaults (void)
}
/* Sound. */
-#if USE_OPENAL
- conf.sound_backend = strdup("openal");
-#else /* USE_OPENAL */
- conf.sound_backend = strdup("sdlmix");
-#endif /* USE_OPENAL */
- conf.snd_voices = 128;
- conf.snd_pilotrel = 1;
- conf.al_efx = 1;
- conf.al_bufsize = 128;
- conf.nosound = 0;
- conf.sound = 0.4;
- conf.music = 0.8;
+ conf.sound_backend = strdup(BACKEND_DEFAULT);
+ conf.snd_voices = VOICES_DEFAULT;
+ conf.snd_pilotrel = PILOT_RELATIVE_DEFAULT;
+ conf.al_efx = USE_EFX_DEFAULT;
+ conf.al_bufsize = BUFFER_SIZE_DEFAULT;
+ conf.nosound = MUTE_SOUND_DEFAULT;
+ conf.sound = SOUND_VOLUME_DEFAULT;
+ conf.music = MUSIC_VOLUME_DEFAULT;
}
@@ -223,14 +220,14 @@ void conf_setVideoDefaults (void)
f = 0;
if ((gl_screen.desktop_w > 0) && (gl_screen.desktop_h > 0)) {
/* Try higher resolution. */
- w = 1024;
- h = 768;
+ w = RESOLUTION_W_DEFAULT;
+ h = RESOLUTION_H_DEFAULT;
/* Fullscreen and fit everything onscreen. */
if ((gl_screen.desktop_w <= w) || (gl_screen.desktop_h <= h)) {
w = gl_screen.desktop_w;
h = gl_screen.desktop_h;
- f = 1;
+ f = FULLSCREEN_DEFAULT;
}
}
else {
@@ -239,27 +236,27 @@ void conf_setVideoDefaults (void)
}
/* OpenGL. */
- conf.fsaa = 1;
- conf.vsync = 0;
- conf.vbo = 0; /* Seems to cause a lot of issues. */
- conf.mipmaps = 0; /* Also cause for issues. */
- conf.compress = 0;
- conf.interpolate = 1;
- conf.npot = 0;
+ conf.fsaa = FSAA_DEFAULT;
+ conf.vsync = VSYNC_DEFAULT;
+ conf.vbo = VBO_DEFAULT; /* Seems to cause a lot of issues. */
+ conf.mipmaps = MIPMAP_DEFAULT; /* Also cause for issues. */
+ conf.compress = TEXTURE_COMPRESSION_DEFAULT;
+ conf.interpolate = INTERPOLATION_DEFAULT;
+ conf.npot = NPOT_TEXTURES_DEFAULT;
/* Window. */
conf.fullscreen = f;
conf.width = w;
conf.height = h;
- conf.explicit_dim = 0;
- conf.scalefactor = 1.;
+ conf.explicit_dim = 0; /* No need for a define, this is only for first-run. */
+ conf.scalefactor = SCALE_FACTOR_DEFAULT;
/* FPS. */
- conf.fps_show = 0;
- conf.fps_max = 200;
+ conf.fps_show = SHOW_FPS_DEFAULT;
+ conf.fps_max = FPS_MAX_DEFAULT;
/* Memory. */
- conf.engineglow = 1;
+ conf.engineglow = ENGINE_GLOWS_DEFAULT;
}
View
41 src/conf.h
@@ -7,6 +7,47 @@
#ifndef CONF_H
# define CONF_H
+/**
+ * CONFIGURATION DEFAULTS
+ */
+/* Gameplay options */
+#define AFTERBURNER_SENSITIVITY_DEFAULT 250 /**< Default afterburner sensitivity. */
+#define TIME_COMPRESSION_DEFAULT_MAX 5000. /**< Maximum default level of time compression (target speed to match). */
+#define TIME_COMPRESSION_DEFAULT_MULT 200 /**< Default level of time compression multiplier. */
+#define SAVE_COMPRESSION_DEFAULT 1 /**< Whether or not saved games should be compressed. */
+#define MOUSE_THRUST_DEFAULT 1 /**< Whether or not to use mouse thrust controls. */
+#define AUTONAV_ABORT_DEFAULT 1. /**< Shield level (0-1) to abort autonav at. 1 means at missile lock, 0 means at armour damage. */
+#define MANUAL_ZOOM_DEFAULT 0 /**< Whether or not to enable manual zoom controls. */
+#define INPUT_MESSAGES_DEFAULT 5 /**< Amount of messages to display. */
+/* Video options */
+#define RESOLUTION_W_DEFAULT 1024 /**< Default screen width. */
+#define RESOLUTION_H_DEFAULT 768 /**< Default screen height. */
+#define FULLSCREEN_DEFAULT 0 /**< Whether to run in fullscreen mode. */
+#define FSAA_DEFAULT 1 /**< Whether to use Full Screen Anti-Aliasing. */
+#define VSYNC_DEFAULT 0 /**< Whether to wait for vertical sync. */
+#define VBO_DEFAULT 0 /**< Whether to use Vertex Buffer Objects. */
+#define MIPMAP_DEFAULT 0 /**< Whether to use Mip Mapping. */
+#define TEXTURE_COMPRESSION_DEFAULT 0 /**< Whether to use texture compression. */
+#define INTERPOLATION_DEFAULT 1 /**< Whether to use interpolation. */
+#define NPOT_TEXTURES_DEFAULT 0 /**< Whether to allow non-power-of-two textures. */
+#define SCALE_FACTOR_DEFAULT 1. /**< Default scale factor. */
+#define SHOW_FPS_DEFAULT 0 /**< Whether to display FPS on screen. */
+#define FPS_MAX_DEFAULT 60 /**< Maximum FPS. */
+#define ENGINE_GLOWS_DEFAULT 1 /**< Whether to display engine glows. */
+/* Audio options */
+#define VOICES_DEFAULT 128 /**< Amount of voices to use. */
+#define PILOT_RELATIVE_DEFAULT 1 /**< Whether the sound is relative to the pilot (as opposed to the camera). */
+#define USE_EFX_DEFAULT 1 /**< Whether or not to use EFX (if using OpenAL). */
+#define BUFFER_SIZE_DEFAULT 128 /**< Default buffer size (if using OpenAL). */
+#define MUTE_SOUND_DEFAULT 0 /**< Whether sound should be disabled. */
+#define SOUND_VOLUME_DEFAULT 0.4 /**< Default sound volume. */
+#define MUSIC_VOLUME_DEFAULT 0.8 /**< Default music volume. */
+#if USE_OPENAL
+#define BACKEND_DEFAULT "openal"
+#else /* USE_OPENAL */
+#define BACKEND_DEFAULT "sdlmix"
+#endif /* USE_OPENAL */
+
/**
* @brief Struct containing player options.
View
199 src/options.c
@@ -69,8 +69,8 @@ static void opt_close( unsigned int wid, char *name );
static void opt_needRestart (void);
/* Gameplay. */
static void opt_gameplay( unsigned int wid );
-static void opt_getAutonavAbortStr( char *buf, int max );
static void opt_setAutonavAbort( unsigned int wid, char *str );
+static void opt_OK( unsigned int wid, char *str );
static void opt_gameplaySave( unsigned int wid, char *str );
static void opt_gameplayDefaults( unsigned int wid, char *str );
static void opt_gameplayUpdate( unsigned int wid, char *str );
@@ -79,12 +79,11 @@ static void opt_video( unsigned int wid );
static void opt_videoRes( unsigned int wid, char *str );
static void opt_videoSave( unsigned int wid, char *str );
static void opt_videoDefaults( unsigned int wid, char *str );
-static void opt_videoUpdate( unsigned int wid, char *str );
/* Audio. */
static void opt_audio( unsigned int wid );
static void opt_audioSave( unsigned int wid, char *str );
static void opt_audioDefaults( unsigned int wid, char *str );
-static void opt_audioUpdate( unsigned int wid, char *str );
+static void opt_audioUpdate( unsigned int wid );
static void opt_audioLevelStr( char *buf, int max, int type, double pos );
static void opt_setAudioLevel( unsigned int wid, char *str );
static void opt_beep( unsigned int wid, char *str );
@@ -130,10 +129,32 @@ void opt_menu (void)
if (opt_restart)
opt_needRestart();
}
+
+
+/**
+ * @brief Saves all options and closes the options screen.
+ */
+static void opt_OK( unsigned int wid, char *str )
+{
+ opt_gameplaySave( opt_windows[ OPT_WIN_GAMEPLAY ], str);
+ opt_audioSave( opt_windows[ OPT_WIN_AUDIO ], str);
+ opt_videoSave( opt_windows[ OPT_WIN_VIDEO ], str);
+ opt_close(wid, str);
+}
+
+/**
+ * @brief Closes the options screen without saving.
+ */
static void opt_close( unsigned int wid, char *name )
{
(void) wid;
(void) name;
+
+ /* At this point, set sound levels as defined in the config file.
+ * This ensures that sound volumes are reset on "Cancel". */
+ sound_volume(conf.sound);
+ music_volume(conf.music);
+
window_destroy( opt_wid );
}
@@ -156,10 +177,10 @@ static void opt_gameplay( unsigned int wid )
/* Close button */
window_addButton( wid, -20, 20,
BUTTON_WIDTH, BUTTON_HEIGHT,
- "btnClose", "Close", opt_close );
+ "btnClose", "OK", opt_OK );
window_addButton( wid, -20 - 1*(BUTTON_WIDTH+20), 20,
BUTTON_WIDTH, BUTTON_HEIGHT,
- "btnApply", "Apply", opt_gameplaySave );
+ "btnCancel", "Cancel", opt_close );
window_addButton( wid, -20 - 2*(BUTTON_WIDTH+20), 20,
BUTTON_WIDTH, BUTTON_HEIGHT,
"btnDefaults", "Defaults", opt_gameplayDefaults );
@@ -241,9 +262,8 @@ static void opt_gameplay( unsigned int wid )
y -= 20;
/* Autonav abort fader. */
- opt_getAutonavAbortStr( buf, sizeof(buf) );
window_addText( wid, x, y, cw, 20, 1, "txtAutonav",
- NULL, NULL, buf );
+ NULL, NULL, NULL );
y -= 20;
window_addFader( wid, x, y, cw, 20, "fadAutonav", 0., 1.,
conf.autonav_abort, opt_setAutonavAbort );
@@ -302,14 +322,17 @@ static void opt_gameplaySave( unsigned int wid, char *str )
conf.zoom_manual = window_checkboxState( wid, "chkZoomManual" );
conf.mouse_thrust = window_checkboxState(wid, "chkMouseThrust" );
conf.save_compress = window_checkboxState( wid, "chkCompress" );
+
+ /* Faders. */
+ conf.autonav_abort = window_getFaderValue(wid, "fadAutonav");
/* Input boxes. */
vmsg = window_getInput( wid, "inpMSG" );
tmax = window_getInput( wid, "inpTMax" );
conf.mesg_visible = atoi(vmsg);
conf.compression_mult = atoi(tmax);
if (conf.mesg_visible == 0)
- conf.mesg_visible = 5;
+ conf.mesg_visible = INPUT_MESSAGES_DEFAULT;
}
/**
@@ -318,17 +341,23 @@ static void opt_gameplaySave( unsigned int wid, char *str )
static void opt_gameplayDefaults( unsigned int wid, char *str )
{
(void) str;
-
- /* Ask user. */
- if (!dialogue_YesNoRaw( "Restore Defaults", "Are you sure you want to restore default gameplay settings?" ))
- return;
+ char vmsg[16], tmax[16];
/* Restore. */
- conf_setGameplayDefaults();
- opt_gameplayUpdate( wid, NULL );
+ /* Checkboxes. */
+ window_checkboxSet( wid, "chkZoomManual", MANUAL_ZOOM_DEFAULT );
+ window_checkboxSet( wid, "chkAfterburn", AFTERBURNER_SENSITIVITY_DEFAULT );
+ window_checkboxSet( wid, "chkMouseThrust", MOUSE_THRUST_DEFAULT );
+ window_checkboxSet( wid, "chkCompress", SAVE_COMPRESSION_DEFAULT );
- /* Alert user it worked. */
- dialogue_msgRaw( "Defaults Restored", "Gameplay settings restored to defaults.");
+ /* Faders. */
+ window_faderValue( wid, "fadAutonav", AUTONAV_ABORT_DEFAULT );
+
+ /* Input boxes. */
+ nsnprintf( vmsg, sizeof(vmsg), "%d", INPUT_MESSAGES_DEFAULT );
+ window_setInput( wid, "inpMSG", vmsg );
+ nsnprintf( tmax, sizeof(tmax), "%d", TIME_COMPRESSION_DEFAULT_MULT );
+ window_setInput( wid, "inpTMax", tmax );
}
/**
@@ -345,6 +374,9 @@ static void opt_gameplayUpdate( unsigned int wid, char *str )
window_checkboxSet( wid, "chkMouseThrust", conf.mouse_thrust );
window_checkboxSet( wid, "chkCompress", conf.save_compress );
+ /* Faders. */
+ window_faderValue( wid, "fadAutonav", conf.autonav_abort );
+
/* Input boxes. */
nsnprintf( vmsg, sizeof(vmsg), "%d", conf.mesg_visible );
window_setInput( wid, "inpMSG", vmsg );
@@ -354,24 +386,6 @@ static void opt_gameplayUpdate( unsigned int wid, char *str )
/**
- * @brief Sets the autonav abort string based on the current abort_autonav value.
- *
- * @param[out] buf Buffer to use.
- * @param max Maximum length of the buffer.
- */
-static void opt_getAutonavAbortStr( char *buf, int max )
-{
- /* Generate message. */
- if (conf.autonav_abort >= 1.)
- nsnprintf( buf, max, "Missile Lock" );
- else if (conf.autonav_abort > 0.)
- nsnprintf( buf, max, "%.0f%% Shield", conf.autonav_abort * 100 );
- else
- nsnprintf( buf, max, "Armour Damage" );
-}
-
-
-/**
* @brief Callback to set autonav abort threshold.
*
* @param wid Window calling the callback.
@@ -384,9 +398,15 @@ static void opt_setAutonavAbort( unsigned int wid, char *str )
/* Set fader. */
autonav_abort = window_getFaderValue(wid, str);
- conf.autonav_abort = autonav_abort;
- opt_getAutonavAbortStr( buf, sizeof(buf) );
+ /* Generate message. */
+ if (autonav_abort >= 1.)
+ nsnprintf( buf, sizeof(buf), "Missile Lock" );
+ else if (autonav_abort > 0.)
+ nsnprintf( buf, sizeof(buf), "%.0f%% Shield", autonav_abort * 100 );
+ else
+ nsnprintf( buf, sizeof(buf), "Armour Damage" );
+
window_modifyText( wid, "txtAutonav", buf );
}
@@ -426,7 +446,7 @@ static void opt_keybinds( unsigned int wid )
/* Close button. */
window_addButton( wid, -20, 20, bw, bh,
- "btnClose", "Close", opt_close );
+ "btnClose", "OK", opt_OK );
/* Set button. */
window_addButton( wid, -20 - bw - 20, 20, bw, bh,
"btnSet", "Set Key", opt_setKey );
@@ -663,7 +683,7 @@ static void opt_audio( unsigned int wid )
int i, j;
int cw;
int w, h, y, x, l;
- char buf[32], **s;
+ char **s;
const char *str;
/* Get size. */
@@ -672,10 +692,10 @@ static void opt_audio( unsigned int wid )
/* Close button */
window_addButton( wid, -20, 20,
BUTTON_WIDTH, BUTTON_HEIGHT,
- "btnClose", "Close", opt_close );
+ "btnClose", "OK", opt_OK );
window_addButton( wid, -20 - 1*(BUTTON_WIDTH+20), 20,
BUTTON_WIDTH, BUTTON_HEIGHT,
- "btnApply", "Apply", opt_audioSave );
+ "btnCancel", "Cancel", opt_close );
window_addButton( wid, -20 - 2*(BUTTON_WIDTH+20), 20,
BUTTON_WIDTH, BUTTON_HEIGHT,
"btnDefaults", "Defaults", opt_audioDefaults );
@@ -730,19 +750,17 @@ static void opt_audio( unsigned int wid )
y -= 30;
/* Sound fader. */
- opt_audioLevelStr( buf, sizeof(buf), 0, sound_getVolume() );
window_addText( wid, x, y, cw, 20, 1, "txtSound",
- NULL, NULL, buf );
+ NULL, NULL, NULL );
y -= 20;
window_addFader( wid, x, y, cw, 20, "fadSound", 0., 1.,
sound_getVolume(), opt_setAudioLevel );
window_faderScrollDone( wid, "fadSound", opt_beep );
y -= 40;
/* Music fader. */
- opt_audioLevelStr( buf, sizeof(buf), 1, music_getVolume() );
window_addText( wid, x, y, cw, 20, 1, "txtMusic",
- NULL, NULL, buf );
+ NULL, NULL, NULL );
y -= 20;
window_addFader( wid, x, y, cw, 20, "fadMusic", 0., 1.,
music_getVolume(), opt_setAudioLevel );
@@ -751,6 +769,8 @@ static void opt_audio( unsigned int wid )
/* Restart text. */
window_addText( wid, 20, 10, 3*(BUTTON_WIDTH + 20),
30, 0, "txtRestart", &gl_smallFont, &cBlack, NULL );
+
+ opt_audioUpdate(wid);
}
@@ -798,6 +818,10 @@ static void opt_audioSave( unsigned int wid, char *str )
conf.al_efx = f;
opt_needRestart();
}
+
+ /* Faders. */
+ conf.sound = window_getFaderValue(wid, "fadSound");
+ conf.music = window_getFaderValue(wid, "fadMusic");
}
@@ -808,43 +832,36 @@ static void opt_audioDefaults( unsigned int wid, char *str )
{
(void) str;
- /* Ask user. */
- if (!dialogue_YesNoRaw( "Restore Defaults", "Are you sure you want to restore default audio settings?" ))
- return;
-
/* Set defaults. */
- conf_setAudioDefaults();
-
- /* Have sound levels affect. */
- sound_volume(conf.sound);
- music_volume(conf.music);
+ /* Faders. */
+ window_faderValue( wid, "fadSound", SOUND_VOLUME_DEFAULT );
+ window_faderValue( wid, "fadMusic", MUSIC_VOLUME_DEFAULT );
- /* Update widgets. */
- opt_audioUpdate( wid, NULL );
+ /* Checkboxes. */
+ window_checkboxSet( wid, "chkNosound", MUTE_SOUND_DEFAULT );
+ window_checkboxSet( wid, "chkEFX", USE_EFX_DEFAULT );
- /* Alert user it worked. */
- dialogue_msgRaw( "Defaults Restored", "Audio settings restored to defaults.");
+ /* List. */
+ toolkit_setList( wid, "lstSound",
+ (conf.sound_backend==NULL) ? "none" : BACKEND_DEFAULT );
}
/**
- * @brief Updates the audio widgets.
+ * @brief Updates the gameplay options.
*/
-static void opt_audioUpdate( unsigned int wid, char *str )
+static void opt_audioUpdate( unsigned int wid )
{
- (void) str;
-
- /* Faders. */
- window_faderValue( wid, "fadSound", sound_getVolume() );
- window_faderValue( wid, "fadMusic", music_getVolume() );
-
- /* Checkboxkes. */
+ /* Checkboxes. */
window_checkboxSet( wid, "chkNosound", conf.nosound );
window_checkboxSet( wid, "chkEFX", conf.al_efx );
- /* List. */
- toolkit_setList( wid, "lstSound",
- (conf.sound_backend==NULL) ? "none" : conf.sound_backend );
+ /* Faders. */
+ window_faderValue( wid, "fadSound", conf.sound );
+ window_faderValue( wid, "fadMusic", conf.music );
+
+ /* Backend box */
+ /* TODO */
}
@@ -1030,10 +1047,10 @@ static void opt_video( unsigned int wid )
/* Close button */
window_addButton( wid, -20, 20,
BUTTON_WIDTH, BUTTON_HEIGHT,
- "btnClose", "Close", opt_close );
+ "btnClose", "OK", opt_OK );
window_addButton( wid, -20 - 1*(BUTTON_WIDTH+20), 20,
BUTTON_WIDTH, BUTTON_HEIGHT,
- "btnApply", "Apply", opt_videoSave );
+ "btnCancel", "Cancel", opt_close );
window_addButton( wid, -20 - 2*(BUTTON_WIDTH+20), 20,
BUTTON_WIDTH, BUTTON_HEIGHT,
"btnDefaults", "Defaults", opt_videoDefaults );
@@ -1259,40 +1276,22 @@ static void opt_videoSave( unsigned int wid, char *str )
static void opt_videoDefaults( unsigned int wid, char *str )
{
(void) str;
-
- /* Ask user. */
- if (!dialogue_YesNoRaw( "Restore Defaults", "Are you sure you want to restore default video settings?" ))
- return;
-
- /* Restore settings. */
- conf_setVideoDefaults();
- opt_videoUpdate( wid, NULL );
-
- /* Alert user it worked. */
- dialogue_msgRaw( "Defaults Restored", "Video settings restored to defaults.");
-}
-
-static void opt_videoUpdate( unsigned int wid, char *str )
-{
- (void) str;
char buf[16];
+ /* Restore settings. */
/* Inputs. */
- nsnprintf( buf, sizeof(buf), "%dx%d", conf.width, conf.height );
+ nsnprintf( buf, sizeof(buf), "%dx%d", RESOLUTION_W_DEFAULT, RESOLUTION_H_DEFAULT );
window_setInput( wid, "inpRes", buf );
- nsnprintf( buf, sizeof(buf), "%d", conf.fps_max );
+ nsnprintf( buf, sizeof(buf), "%d", FPS_MAX_DEFAULT );
window_setInput( wid, "inpFPS", buf );
/* Checkboxkes. */
- window_checkboxSet( wid, "chkFullscreen", conf.fullscreen );
- window_checkboxSet( wid, "chkVSync", conf.vsync );
- window_checkboxSet( wid, "chkVBO", conf.vbo );
- window_checkboxSet( wid, "chkMipmaps", conf.mipmaps );
- window_checkboxSet( wid, "chkInterpolate", conf.interpolate );
- window_checkboxSet( wid, "chkNPOT", conf.npot );
- window_checkboxSet( wid, "chkFPS", conf.fps_show );
- window_checkboxSet( wid, "chkEngineGlow", conf.engineglow );
-
- /* Just in case - lazy. */
- opt_needRestart();
+ window_checkboxSet( wid, "chkFullscreen", FULLSCREEN_DEFAULT );
+ window_checkboxSet( wid, "chkVSync", VSYNC_DEFAULT );
+ window_checkboxSet( wid, "chkVBO", VBO_DEFAULT );
+ window_checkboxSet( wid, "chkMipmaps", MIPMAP_DEFAULT );
+ window_checkboxSet( wid, "chkInterpolate", INTERPOLATION_DEFAULT );
+ window_checkboxSet( wid, "chkNPOT", NPOT_TEXTURES_DEFAULT );
+ window_checkboxSet( wid, "chkFPS", SHOW_FPS_DEFAULT );
+ window_checkboxSet( wid, "chkEngineGlow", ENGINE_GLOWS_DEFAULT );
}
View
3 src/player_autonav.h
@@ -12,9 +12,6 @@
#endif /* PLAYER_H */
-#define TIME_COMPRESSION_DEFAULT_MAX 5000. /**< Maximum default level of time compression (target speed to match). */
-
-
/* Autonav states. */
#define AUTONAV_JUMP_APPROACH 0 /**< Player is approaching a jump. */
#define AUTONAV_JUMP_BRAKE 1 /**< Player is braking at a jump. */

0 comments on commit 554287c

Please sign in to comment.