@@ -461,12 +461,14 @@ fn update_tile_sprites(
461
461
&& chunk. get_tile ( x, y + 1 ) . is_wall ( )
462
462
&& !chunk. get_tile ( x, y + 2 ) . is_wall ( )
463
463
{
464
+ warn ! ( "filling gap at {} {}" , x, y) ;
464
465
chunk. set_tile ( x, y + 1 , Tile :: StoneTile ) ;
465
466
} else if !chunk. get_tile ( x, y + 0 ) . is_wall ( )
466
467
&& chunk. get_tile ( x, y + 1 ) . is_wall ( )
467
468
&& chunk. get_tile ( x, y + 2 ) . is_wall ( )
468
469
&& !chunk. get_tile ( x, y + 3 ) . is_wall ( )
469
470
{
471
+ warn ! ( "filling gap at {} {}" , x, y) ;
470
472
chunk. set_tile ( x, y + 1 , Tile :: StoneTile ) ;
471
473
chunk. set_tile ( x, y + 2 , Tile :: StoneTile ) ;
472
474
}
@@ -475,6 +477,8 @@ fn update_tile_sprites(
475
477
476
478
// 範囲内を更新
477
479
if let Some ( ( left, top, right, bottom) ) = chunk. dirty {
480
+ info ! ( "updating chunk {:?}" , chunk. dirty) ;
481
+
478
482
let min_x = ( left - 1 ) . max ( chunk. min_x ) ;
479
483
let max_x = ( right + 1 ) . min ( chunk. max_x ) ;
480
484
let min_y = ( top - 1 ) . max ( chunk. min_y ) ;
@@ -484,6 +488,7 @@ fn update_tile_sprites(
484
488
for ( entity, TileSprite ( ( tx, ty) ) ) in tiles_query. iter ( ) {
485
489
if min_x <= * tx && * tx <= max_x && min_y <= * ty && * ty <= max_y {
486
490
commands. entity ( entity) . despawn_recursive ( ) ;
491
+ // info!("despawn_recursive {} {}", file!(), line!());
487
492
}
488
493
}
489
494
@@ -497,6 +502,7 @@ fn update_tile_sprites(
497
502
// コリジョンはすべて再生成
498
503
for entity in collider_query. iter ( ) {
499
504
commands. entity ( entity) . despawn_recursive ( ) ;
505
+ // info!("despawn_recursive {} {}", file!(), line!());
500
506
}
501
507
spawn_wall_collisions ( & mut commands, chunk) ;
502
508
0 commit comments