[Fix] Potential seg fault.

This commit is contained in:
Allanis 2013-03-21 23:13:47 +00:00
parent eff5850957
commit 88b2f1b714
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ void conf_setDefaults(void) {
data = DATA_DEF; data = DATA_DEF;
// GL. // GL.
gl_screen.w = 800; gl_screen.w = 800;
gl_screen.h = 640; gl_screen.h = 600;
gl_screen.flags = 0; gl_screen.flags = 0;
// Openal. // Openal.
nosound = 1; // TODO: make sound default when it's sane again. nosound = 1; // TODO: make sound default when it's sane again.

View File

@ -122,7 +122,7 @@ void input_setKeybind(char* keybind, KeybindType type, int key, int reverse) {
#define INGAME() (!toolkit) #define INGAME() (!toolkit)
// We won't be having any more funny stuff from VLack.. // We won't be having any more funny stuff from VLack..
#define NOHYP() \ #define NOHYP() \
(!pilot_isFlag(player, PILOT_HYP_PREP) && \ (player && !pilot_isFlag(player, PILOT_HYP_PREP) && \
!pilot_isFlag(player, PILOT_HYP_BEGIN) && \ !pilot_isFlag(player, PILOT_HYP_BEGIN) && \
!pilot_isFlag(player, PILOT_HYPERSPACE)) !pilot_isFlag(player, PILOT_HYPERSPACE))
static void input_key(int keynum, double value, int abs) { static void input_key(int keynum, double value, int abs) {