TITLE - Convert elevation map to a compile-time value instead of lazily initialized value
Status
[x] Ready
[ ] Development
[ ] Hold
Description
Converts the elevation weight map to use soft floats. This ensures that map is the same on all architectures as hardware specific floating point quirks are ignored, and allows it to be computed at compile time. A test is included with the old code to show that the result is unchanged.
Related issues
Leave empty if none
Checklist
[x] Ran cargo fmt, cargo clippy --all-targets, cargo build --release and cargo test and fixed any generated errors!
[x] Removed unnecessary commented out code
[ ] Used specific traces (if you trace actions please specify the cause i.e. the player)
Note: if you locally don't get any errors, but GitHub Actions fails (especially at clippy) you might want to check your rust toolchain version. You can then feel free to fix these warnings/errors in your PR.
TITLE - Convert elevation map to a compile-time value instead of lazily initialized value
Status
Description
Converts the elevation weight map to use soft floats. This ensures that map is the same on all architectures as hardware specific floating point quirks are ignored, and allows it to be computed at compile time. A test is included with the old code to show that the result is unchanged.
Related issues
Leave empty if none
Checklist
cargo fmt
,cargo clippy --all-targets
,cargo build --release
andcargo test
and fixed any generated errors!Note: if you locally don't get any errors, but GitHub Actions fails (especially at
clippy
) you might want to check your rust toolchain version. You can then feel free to fix these warnings/errors in your PR.