Skip to content

Commit

Permalink
clear_map in monster tests
Browse files Browse the repository at this point in the history
After CleverRaven#30051 clear_creatures no longer clears NPCs.  Add a call to do
that in these tests where it is needed.
  • Loading branch information
jbytheway committed Apr 30, 2019
1 parent 79877f3 commit 4607cd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/monster_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ typedef statistics<int> move_statistics;
static int moves_to_destination( const std::string &monster_type,
const tripoint &start, const tripoint &end )
{
clear_creatures();
clear_map();
REQUIRE( g->num_creatures() == 1 ); // the player
monster &test_monster = spawn_test_monster( monster_type, start );
// Get it riled up and give it a goal.
Expand Down Expand Up @@ -83,7 +83,7 @@ std::ostream &operator << ( std::ostream &os, const std::vector<track> &vec )
**/
static int can_catch_player( const std::string &monster_type, const tripoint &direction_of_flight )
{
clear_creatures();
clear_map();
REQUIRE( g->num_creatures() == 1 ); // the player
player &test_player = g->u;
// Strip off any potentially encumbering clothing.
Expand Down

0 comments on commit 4607cd7

Please sign in to comment.