Skip to content

Commit

Permalink
int div -> float div
Browse files Browse the repository at this point in the history
  • Loading branch information
appgurueu authored and sfence committed Aug 5, 2024
1 parent ad4c700 commit 9ff46be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodedef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ void rawUnionFixed(const ContentFeatures &features,
boxVectorUnion(to_add, &half_processed);
// Set leveled boxes to maximal
if (nbt == NODEBOX_LEVELED) {
half_processed.MaxEdge.Y = (-0.5 + 127/64) * BS;
half_processed.MaxEdge.Y = (-0.5f + 127.0f/64.0f) * BS;
} else if (nbt == NODEBOX_LEVELED_PLANTLIKE ||
nbt == NODEBOX_LEVELED_PLANTLIKE_ROOTED) {
half_processed.MaxEdge.Y = SAFE_SELECTION_BOX_LIMIT * BS;
Expand Down

0 comments on commit 9ff46be

Please sign in to comment.