From 0e76d75ab03548725e25ef400b137879634d8637 Mon Sep 17 00:00:00 2001 From: Allanis Date: Mon, 4 Aug 2014 23:44:14 +0100 Subject: [PATCH] [Change] Allow changing of afterburner sensitivity. --- src/conf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index f57fff7..0df8e5e 100644 --- a/src/conf.c +++ b/src/conf.c @@ -159,15 +159,19 @@ int conf_loadConfig(const char* file) { if(i) { gl_screen.flags |= OPENGL_AA_LINE; i = 0; } conf_loadBool("aa_polygon", i); if(i) { gl_screen.flags |= OPENGL_AA_POLYGON; i = 0; } + /* vsync. */ conf_loadBool("vsync", i); if(i) { gl_screen.flags |= OPENGL_VSYNC; i = 0; } + /* FPS. */ conf_loadBool("showfps", show_fps); conf_loadInt("maxfps", max_fps); /* Input. */ - conf_loadInt("afterburn", input_afterburnSensibility); + i = 250; + conf_loadInt("afterburn", i); + input_afterburnSensibility = (i < 0) ? UINT_MAX : (unsigned int)i; /* Sound. */ conf_loadBool("nosound", i);