Skip to content

Commit

Permalink
Minor code style fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Flone-dnb committed Dec 30, 2023
1 parent 95b752b commit e6c4b3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/engine_lib/private/game/nodes/SpatialNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,11 @@ namespace ne {
return;
}

const float iWorldSizeOneDimention = static_cast<float>(pGameInstance->getWorldSize()) / 2;
const float worldSizeOneDimention = static_cast<float>(pGameInstance->getWorldSize()) / 2.0F;

if (std::abs(mtxWorldMatrix.second.worldLocation.x) > iWorldSizeOneDimention ||
std::abs(mtxWorldMatrix.second.worldLocation.y) > iWorldSizeOneDimention ||
std::abs(mtxWorldMatrix.second.worldLocation.z) > iWorldSizeOneDimention) {
if (std::abs(mtxWorldMatrix.second.worldLocation.x) > worldSizeOneDimention ||
std::abs(mtxWorldMatrix.second.worldLocation.y) > worldSizeOneDimention ||
std::abs(mtxWorldMatrix.second.worldLocation.z) > worldSizeOneDimention) {
Logger::get().warn(std::format(
"[{}] spatial node \"{}\" is exceeding world bounds, node's world location: "
"({}, {}, {}), world size: {}",
Expand Down

0 comments on commit e6c4b3d

Please sign in to comment.