diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 14:48:02 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 14:48:02 +0100 |
commit | 6dfa3fb34fb0a2ea028fd46e77296e26b092fb99 (patch) | |
tree | 51257e54561550c91dbec262fe143d4dbe41f059 /frontend/main.cpp | |
parent | 862186ae7cbbd922057fa5f6b49509c36f9ade36 (diff) |
use string instead of argument vector for commands
Diffstat (limited to 'frontend/main.cpp')
-rw-r--r-- | frontend/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/frontend/main.cpp b/frontend/main.cpp index deacdc5..366473d 100644 --- a/frontend/main.cpp +++ b/frontend/main.cpp @@ -37,8 +37,7 @@ FollowupAction game_main() { while (1) { string line = rl(); if (line.length() == 0) continue; - vector<string> argv = str_split(line, " "); - FollowupAction action = player.cmd(argv); + FollowupAction action = player.cmd(line); switch (action) { case NONE: break; |