Skip to content

Commit ddde436

Browse files
committed
add more comments
1 parent 26d03da commit ddde436

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/game.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12763,18 +12763,20 @@ bool game::travel_to_dimension( const std::string &new_prefix )
1276312763
dimension_prefix.clear();
1276412764
}
1276512765
// Load in data specific to the dimension (like weather)
12766-
if( !load_dimension_data() ) {
12766+
//if( !load_dimension_data() ) {
1276712767
// dimension data file not found/created yet
1276812768
/* handle weather instance switching when I have dimensions with different region settings,
1276912769
right now they're all the same and it's hard to tell if it's working or not. */
1277012770
// weather.set_nextweather( calendar::turn );
12771-
}
12771+
//}
1277212772
// Ensure the new world has compression files
1277312773
world_generator->active_world->assure_compression_files_present();
12774+
// Clear the immediate game area around the player
1277412775
MAPBUFFER.clear();
1277512776
// hack to prevent crashes from temperature checks
1277612777
// This returns to false in 'on_turn()' so it should be fine?
1277712778
swapping_dimensions = true;
12779+
// Clear the overmap
1277812780
overmap_buffer.clear();
1277912781
// load/create new overmap
1278012782
overmap_buffer.get( point_abs_om{} );

0 commit comments

Comments
 (0)