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);