Player entity no longer directly handles raw button input (turn 180 and fpv toggle need more work), fixed Console printing empty lines for tab completion when available commands list is empty.

This commit is contained in:
2019-08-13 10:18:30 -05:00
parent 016e8109de
commit 7ebf65f535
4 changed files with 78 additions and 73 deletions

View File

@@ -123,7 +123,7 @@ class IMICFPS
if list.size == 1
@text_input.text = "#{list.first} "
else
stdin("\n#{list.map { |cmd| Commands::Style.highlight(cmd)}.join(", ")}")
stdin("\n#{list.map { |cmd| Commands::Style.highlight(cmd)}.join(", ")}") if list.size > 0
end
else
if split.size > 0 && cmd = Commands::Command.find(split.first)