Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Srb František
Cpp-Game
Commits
5c3573a1
Commit
5c3573a1
authored
May 28, 2021
by
Srb František
Browse files
removed unecessary console debug print
parent
8449e235
Changes
1
Hide whitespace changes
Inline
Side-by-side
CppGame/Scene.cpp
View file @
5c3573a1
...
@@ -292,7 +292,6 @@ bool Scene::pos_is_visible(const Player& character, pos position) const
...
@@ -292,7 +292,6 @@ bool Scene::pos_is_visible(const Player& character, pos position) const
angle_to_pos
=
2
*
PI
+
angle_to_pos
;
angle_to_pos
=
2
*
PI
+
angle_to_pos
;
float
delta_angle
=
abs
(
angle_view
-
angle_to_pos
);
float
delta_angle
=
abs
(
angle_view
-
angle_to_pos
);
if
(
delta_angle
>
PI
)
delta_angle
=
2
*
PI
-
delta_angle
;
if
(
delta_angle
>
PI
)
delta_angle
=
2
*
PI
-
delta_angle
;
std
::
cout
<<
delta_angle
<<
std
::
endl
;
if
(
delta_angle
>
character
.
fov
/
2
)
if
(
delta_angle
>
character
.
fov
/
2
)
return
false
;
//out of fov
return
false
;
//out of fov
//check if there is wall
//check if there is wall
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment