mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-15 04:05:02 +01:00
Make chunk coordinate type 32 bits
This ensures there isn't a problem converting between world coords and chunk coords. Since the world center if half of max of u32, this is a very real problem to handle with only 16 bits.
This commit is contained in:
parent
becc441955
commit
6e2ab5837b
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use fnv::FnvHashMap;
|
||||
use rand::{thread_rng, Rng};
|
||||
|
||||
type ChunkPosScalar = u16;
|
||||
type ChunkPosScalar = u32;
|
||||
|
||||
#[derive(Hash, PartialEq, Eq, Debug, Clone, Copy)]
|
||||
pub struct ChunkPos {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue