Fixing a stupid bug where it would crash because a fact wasn't in the world.
This commit is contained in:
parent
93f53d1714
commit
5a6494acf5
7 changed files with 11 additions and 6 deletions
|
@ -37,8 +37,8 @@ TEST_CASE("lighting a map works", "[lighting]") {
|
|||
|
||||
Matrix &lighting = lr.lighting();
|
||||
|
||||
matrix::dump("WALLS=====", map.walls());
|
||||
matrix::dump("LIGHT PATHS======", lr.$paths.$paths);
|
||||
//matrix::dump("WALLS=====", map.walls());
|
||||
//matrix::dump("LIGHT PATHS======", lr.$paths.$paths);
|
||||
|
||||
// confirm light is set at least at and around the two points
|
||||
REQUIRE(lighting[light1.y][light1.x] == lighting::LEVELS[source1.strength]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue