mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 12:25:02 +01:00
Fix world pos to tile pos calculation for negative values
This commit is contained in:
parent
62bd6b2c7c
commit
7dba1b22e3
3 changed files with 26 additions and 8 deletions
|
|
@ -140,7 +140,7 @@ fn test_to_chunk_and_local() {
|
|||
}
|
||||
|
||||
// Need to support at least 4 million tiles long
|
||||
type TilePosScalar = i32;
|
||||
pub type TilePosScalar = i32;
|
||||
|
||||
const CHUNK_EXTENT: u16 = 128;
|
||||
const CHUNK_N_TILES: usize = CHUNK_EXTENT as usize * CHUNK_EXTENT as usize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue