fixes message log wrapping - sort of
it's an improvement - messages will wrap if the added fragment is longer than the maximum width, but it still causes issues if an *individual* fragment is longer than the width. the proper solution here, i think, is to get rid of the whole fragment system and just log words and newlines, and not have to bother with any of this.
This commit is contained in:
parent
1e25d062db
commit
650afaf821
5 changed files with 48 additions and 25 deletions
|
|
@ -80,7 +80,7 @@ impl State {
|
|||
self.mapgen_timer = 0.0;
|
||||
self.mapgen_history.clear();
|
||||
let mut rng = self.ecs.write_resource::<rltk::RandomNumberGenerator>();
|
||||
let mut builder = map_builders::level_builder(new_id, &mut rng, 80, 50);
|
||||
let mut builder = map_builders::level_builder(new_id, &mut rng, 100, 50);
|
||||
builder.build_map(&mut rng);
|
||||
std::mem::drop(rng);
|
||||
self.mapgen_history = builder.build_data.history.clone();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue