summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-11-15 16:39:59 -0500
committerJonathan Bradley <jcb@pikum.xyz>2023-11-15 16:39:59 -0500
commita01490e6faafdd2fcfc00720c08dc79e049b2c8c (patch)
treebe64cde1d730c36aae27b73c4143525f69326d41
parent76fd6a30682315c4ff5652815ceaa4301a5321da (diff)
cleanup
-rw-r--r--src/game.cpp3
-rw-r--r--src/physics.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp
index d5d2b90..7069ac9 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -549,8 +549,7 @@ void Game_Tick(double delta) {
}
// raycast for hovering
hoveredEntity = EntityHandle_MAX;
- if (!imGuiHovered)
- {
+ if (!imGuiHovered) {
double xMousePos, yMousePos;
glfwGetCursorPos(window, &xMousePos, &yMousePos);
diff --git a/src/physics.cpp b/src/physics.cpp
index 217943d..e960059 100644
--- a/src/physics.cpp
+++ b/src/physics.cpp
@@ -102,7 +102,7 @@ void Physics_Init() {
int32_t Physics_Tick(double delta) {
if (pkeSettings.isSimulationPaused == true)
return 0;
- return BtDynamicsWorld->stepSimulation(delta, 0);
+ return BtDynamicsWorld->stepSimulation(delta, 1);
}
void Physics_Teardown() {