Skip to content

Noise divisor code should not be incremented #35

@42plamusse

Description

@42plamusse

n => (u32::from(n) + 1) * 16,

n should not be incremented by 1. Otherwise, by example, if n = 1 you will get a divisor value of 32 instead of the 16 expected.

You can also use this operation instead:

n => u32::from(n) << 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions