sdl_runtime_compiler git · main
SDL3 game for running and compiling code at runtime
C++ 72.3% C 26.2%git clone https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler.gitwget https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler/archive/sdl_runtime_compiler.tar.gzDisable pickup whitespace from editor wsall
src/systems/pick_system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/systems/pick_system.cpp b/src/systems/pick_system.cpp index ba06e51..34d9efd 100644 --- a/src/systems/pick_system.cpp +++ b/src/systems/pick_system.cpp @@ -77,7 +77,7 @@ pick(const Camera& camera, for (size_t i = 0; i < words.size(); i++) { const Text::TokenPtr& w = words[i]; - if (!w || !w->interactable) continue; + if (!w || !w->interactable || w->is_Whitespace()) continue; if (w->ai.state != Text::Token::Ai::State::Idle) continue; if (w->pos.y < floor_y) continue; @@ -106,7 +106,7 @@ pick(const Camera& camera, for (const Text::Line& line : h->get_Lines()) { for (const Text::TokenPtr& tp : line.tokens) { Text::Token::Data* t = tp.get(); - if (!t || !t->interactable) continue; + if (!t || !t->interactable || t->is_Whitespace()) continue; if (t->pos.y < floor_y) continue; double a = angScore(*t, eye, camera.fwd); if (a >= 0.0 && a < best_angle) {