aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/player.c b/src/player.c
index 9a08204..2d9ec62 100644
--- a/src/player.c
+++ b/src/player.c
@@ -130,7 +130,10 @@ void updatePlayer(Player* player, Game* game)
.direction = player->direction
};
- DrawRay(ray, YELLOW);
+ if (game->isCrossHairEnabled)
+ {
+ DrawRay(ray, YELLOW);
+ }
WorldUID uid = castRayAtWorld(&game->world, ray, false, NULL);