This commit is contained in:
crumblingstatue 2023-04-14 17:34:49 +02:00
parent 11dcc815f9
commit 4fb7d4c412

View file

@ -366,9 +366,9 @@ fn test_world_serialization() {
.init(); .init();
let mut w = World::new(WorldPos { x: 0, y: 0 }, "smoltestworld"); let mut w = World::new(WorldPos { x: 0, y: 0 }, "smoltestworld");
let wg = Worldgen::from_seed(0); let wg = Worldgen::from_seed(0);
for y in 0..820 { for y in 0..400 {
for x in 0..820 { for x in 0..400 {
w.tile_at_mut(TilePos { x, y }, &wg).mid = (x + y) as u16; w.tile_at_mut(TilePos { x, y }, &wg).mid = 1;
} }
} }
w.save(); w.save();