feat: add /clear chat command and movement speed display in stats

- /clear slash command empties the chat history (was listed in
  autocomplete but never handled)
- Stats panel shows run/flight/swim speed as percentage of base only
  when non-default (e.g. mounted or speed-buffed), under a new
  Movement section
This commit is contained in:
Kelsi 2026-03-13 09:38:39 -07:00
parent 01ec830555
commit f5a834b543
3 changed files with 39 additions and 0 deletions

View file

@ -4669,6 +4669,12 @@ void GameScreen::sendChatMessage(game::GameHandler& gameHandler) {
return;
}
if (cmdLower == "clear") {
gameHandler.clearChatHistory();
chatInputBuffer[0] = '\0';
return;
}
// /invite command
if (cmdLower == "invite" && spacePos != std::string::npos) {
std::string targetName = command.substr(spacePos + 1);