Skip to content

Commit

Permalink
Merge pull request #74315 from PatrikLundell/break_spiral
Browse files Browse the repository at this point in the history
  • Loading branch information
Maleclypse authored Jun 5, 2024
2 parents e7319f8 + 683fcb3 commit b8f906a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/avatar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,9 @@ bool avatar::cant_see( const tripoint_bub_ms &p )

void avatar::rebuild_aim_cache()
{
aim_cache_dirty =
false; // Can trigger recursive death spiral if still set when calc_steadiness is called.

double pi = 2 * acos( 0.0 );

const tripoint local_last_target = get_map().bub_from_abs( last_target_pos.value() ).raw();
Expand Down Expand Up @@ -1311,7 +1314,6 @@ void avatar::rebuild_aim_cache()
}

// set cache as no longer dirty
aim_cache_dirty = false;
}

void avatar::set_movement_mode( const move_mode_id &new_mode )
Expand Down

0 comments on commit b8f906a

Please sign in to comment.