From 6dfa3fb34fb0a2ea028fd46e77296e26b092fb99 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 30 Oct 2024 14:48:02 +0100 Subject: use string instead of argument vector for commands --- frontend/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'frontend/main.cpp') 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 argv = str_split(line, " "); - FollowupAction action = player.cmd(argv); + FollowupAction action = player.cmd(line); switch (action) { case NONE: break; -- cgit v1.2.3