Switching to Linux to find a memory bug and I want to keep a record of what caused it.
This commit is contained in:
parent
be3eef7082
commit
e51fb8627c
7 changed files with 23 additions and 42 deletions
|
@ -69,7 +69,7 @@ bool WorldBuilder::find_open_spot(Point& pos_out) {
|
|||
for(matrix::rando_box it{$map.walls(), pos_out.x, pos_out.y, i}; it.next();) {
|
||||
Point test{size_t(it.x), size_t(it.y)};
|
||||
|
||||
if($map.can_move(test) && !$collision->occupied(test)) {
|
||||
if($map.can_move(test) && !$collision.occupied(test)) {
|
||||
pos_out = test;
|
||||
return true;
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ DinkyECS::Entity WorldBuilder::configure_entity_in_map(DinkyECS::World &world, j
|
|||
components::configure_entity(world, item, entity_data["components"]);
|
||||
}
|
||||
|
||||
$collision->insert(pos, item, has_collision);
|
||||
$collision.insert(pos, item, has_collision);
|
||||
|
||||
return item;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue