1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Bunch of small fixes (coding style, very unlikely errors, warning messages)

This commit is contained in:
sapier 2014-04-06 15:12:04 +02:00
parent a230e1e736
commit eda9214f81
9 changed files with 51 additions and 34 deletions

View file

@ -266,6 +266,7 @@ public:
} else {
keyIsDown.unset(event.KeyInput);
}
return true;
}
if(event.EventType == irr::EET_MOUSE_INPUT_EVENT)
@ -1484,10 +1485,11 @@ int main(int argc, char *argv[])
bool random_input = g_settings->getBool("random_input")
|| cmd_args.getFlag("random-input");
InputHandler *input = NULL;
if(random_input)
if(random_input) {
input = new RandomInputHandler();
else
} else {
input = new RealInputHandler(device, &receiver);
}
scene::ISceneManager* smgr = device->getSceneManager();