mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
No it doesn't quite work
This commit is contained in:
parent
42e720959e
commit
6b9b5254f3
2 changed files with 10 additions and 3 deletions
|
@ -9,7 +9,7 @@ impl ParticleWorldState {
|
|||
pub(crate) unsafe fn get_cell(&self, x: i32, y: i32) -> *const c_void {
|
||||
let x = dbg!(x as isize);
|
||||
let y = dbg!(y as isize);
|
||||
let chunk_index = dbg!((((((y) >> 9) - 256) & 511) * 512 + ((((x) >> 9) - 256) & 511)) * 4);
|
||||
let chunk_index = (((((y) >> 9) - 256) & 511) * 512 + ((((x) >> 9) - 256) & 511)) * 4;
|
||||
let chunk_arr = self.chunk_map_this.offset(8).cast::<*const c_void>().read();
|
||||
// dbg!(chunk_arr);
|
||||
let chunk = chunk_arr.offset(chunk_index).cast::<*const c_void>().read();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue