aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@bordeaux-inp.fr>2024-06-28 15:10:10 +0900
committerTristan Riehs <tristan.riehs@bordeaux-inp.fr>2024-06-28 15:10:10 +0900
commit2550f71c39c1a24588c50c640350f10caefc2342 (patch)
tree43db73df38b8a779bea641ef2adb4e492cbbf43f /src
parent086fe7efebd7aa59e5523c56adc3c8ea1741058b (diff)
Only enable reload key in debug mode
Diffstat (limited to 'src')
-rw-r--r--src/ray.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ray.c b/src/ray.c
index 0ee2a76..756840c 100644
--- a/src/ray.c
+++ b/src/ray.c
@@ -260,8 +260,10 @@ read_input(void)
return states[current_state].input;
if (IsKeyPressed(KEY_Q) || IsKeyPressed(KEY_A))
return DISP_QUIT;
+#ifndef NDEBUG
if (IsKeyPressed(KEY_R) || IsKeyPressed(KEY_G))
return DISP_RELOAD;
+#endif
if (IsKeyPressed(KEY_BACKSPACE))
{
states[current_state].input =