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:
parent
a230e1e736
commit
eda9214f81
9 changed files with 51 additions and 34 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue