Let member function use it own class and not the global variable.
This commit is contained in:
parent
81234ca22a
commit
4daf4c8ccf
2
main.cc
2
main.cc
@ -121,7 +121,7 @@ bool Application::isFocused() {
|
|||||||
void Application::setCameraLock(bool locked) {
|
void Application::setCameraLock(bool locked) {
|
||||||
// Prevent camera jumping huge distances
|
// Prevent camera jumping huge distances
|
||||||
if (!locked) {
|
if (!locked) {
|
||||||
app.ignoreNextMouseUpdate();
|
ignoreNextMouseUpdate();
|
||||||
}
|
}
|
||||||
cameraLock = locked;
|
cameraLock = locked;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user