Fixed error on stderr when joystick support is disabled.
This commit is contained in:
parent
24d0258a0b
commit
de85cccd79
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue