mirror of
https://github.com/fazo96/AIrium.git
synced 2025-01-25 11:54:20 +01:00
formatting
This commit is contained in:
parent
c37675d7b3
commit
2d6b8955f1
@ -77,8 +77,11 @@ public class Game extends ApplicationAdapter {
|
||||
}
|
||||
*/
|
||||
camera.zoom += i;
|
||||
if(camera.zoom < 1f) camera.zoom = 1f;
|
||||
else if(camera.zoom > 10) camera.zoom = 10;
|
||||
if (camera.zoom < 1f) {
|
||||
camera.zoom = 1f;
|
||||
} else if (camera.zoom > 10) {
|
||||
camera.zoom = 10;
|
||||
}
|
||||
camera.update();
|
||||
Log.log(Log.DEBUG, "Camera zoom: " + camera.zoom + " Delta: " + i);
|
||||
return true;
|
||||
@ -132,9 +135,11 @@ public class Game extends ApplicationAdapter {
|
||||
// Render only half the elements because the list gets
|
||||
// modified by another thread? Who cares, it's a simulation
|
||||
// not some videogame
|
||||
Log.log(Log.DEBUG, "Failed to complete rendering");
|
||||
}
|
||||
}
|
||||
} catch (ConcurrentModificationException ex) {
|
||||
Log.log(Log.DEBUG, "Failed to complete rendering");
|
||||
}
|
||||
renderer.setColor(0.3f, 0.3f, 0.3f, 1);
|
||||
// draw borders
|
||||
|
Loading…
Reference in New Issue
Block a user