Skip to content

Commit

Permalink
Try again on checking hour of day.
Browse files Browse the repository at this point in the history
  • Loading branch information
actual-nh committed Mar 25, 2021
1 parent ea65b7e commit 874bccf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/monster_attack_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ static constexpr tripoint attacker_location{ 65, 65, 0 };
static void test_monster_attack( const tripoint &target_offset, bool expect_attack,
bool expect_vision )
{
int day_hour = hour_of_day( calendar::turn ) );
clear_creatures();
CAPTURE( hour_of_day( calendar::turn ) );
CAPTURE( day_hour );
REQUIRE( is_day( calendar::turn ) );
// Monster adjacent to target.
const std::string monster_type = "mon_zombie";
Expand Down

0 comments on commit 874bccf

Please sign in to comment.