Skip to content

Commit

Permalink
Update validateDensity
Browse files Browse the repository at this point in the history
  • Loading branch information
Dianliang233 committed Aug 5, 2024
1 parent 139cfdd commit a048dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/maceDamage/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const damage = computed({
function validateDensity(value: number) {
// density needs to be integer between 0 and 5
const density = Math.floor(Math.min(5, Math.max(0, densityLevel.value)))
const density = Math.floor(Math.min(32767, Math.max(-32768, densityLevel.value)))
if (value !== density) densityLevel.value = density
}
</script>
Expand Down

0 comments on commit a048dd8

Please sign in to comment.