Fixed error on stderr when joystick support is disabled.

This commit is contained in:
Fabian Müller 2011-10-02 16:41:10 +00:00
parent 24d0258a0b
commit de85cccd79

View file

@ -389,9 +389,11 @@ static int do_gameloop(int argc, char** argv)
return 1;
}
res = game->init_joystick();
if(res == false) {
std::cerr << "could not initialize joystick\n";
if(preferences::joystick_support_enabled()) {
res = game->init_joystick();
if(res == false) {
std::cerr << "could not initialize joystick\n";
}
}
const cursor::manager cursor_manager;