Commit 5c3573a1 authored by Srb František's avatar Srb František
Browse files

removed unecessary console debug print

parent 8449e235
......@@ -292,7 +292,6 @@ bool Scene::pos_is_visible(const Player& character, pos position) const
angle_to_pos = 2 * PI + angle_to_pos;
float delta_angle = abs(angle_view - angle_to_pos);
if (delta_angle > PI) delta_angle = 2*PI-delta_angle;
std::cout << delta_angle << std::endl;
if (delta_angle > character.fov/2)
return false; //out of fov
//check if there is wall
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment