Skip to content

Commit

Permalink
character update is disabled when dt is 0, fixes an issue in pause
Browse files Browse the repository at this point in the history
  • Loading branch information
turanszkij committed Nov 26, 2024
1 parent bada687 commit 0975a5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions WickedEngine/wiScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5378,6 +5378,9 @@ namespace wi::scene
}
void Scene::RunCharacterUpdateSystem(wi::jobsystem::context& ctx)
{
if (dt == 0)
return;

static const XMVECTOR up = XMVectorSet(0, 1, 0, 0);
static const XMMATRIX rotY = XMMatrixRotationY(XM_PI);
static const int max_substeps = 6;
Expand Down
2 changes: 1 addition & 1 deletion WickedEngine/wiVersion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace wi::version
// minor features, major updates, breaking compatibility changes
const int minor = 71;
// minor bug fixes, alterations, refactors, updates
const int revision = 621;
const int revision = 622;

const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);

Expand Down

0 comments on commit 0975a5a

Please sign in to comment.