]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - keys.c
Rename src_command to src_local, to clarify its meaning
[xonotic/darkplaces.git] / keys.c
diff --git a/keys.c b/keys.c
index 1392be6360c0e8d382977192a2c8f23d3a8d1530..5a67502ffe147595386a07cba05ff18563b3a804 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -1305,9 +1305,9 @@ Key_Message (cmd_state_t *cmd, int key, int ascii)
        if (key == K_ENTER || key == K_KP_ENTER || ascii == 10 || ascii == 13)
        {
                if(chat_mode < 0)
-                       Cmd_ExecuteString(cmd, chat_buffer, src_command, true); // not Cbuf_AddText to allow semiclons in args; however, this allows no variables then. Use aliases!
+                       Cmd_ExecuteString(cmd, chat_buffer, src_local, true); // not Cbuf_AddText to allow semiclons in args; however, this allows no variables then. Use aliases!
                else
-                       Cmd_ForwardStringToServer(va(vabuf, sizeof(vabuf), "%s %s", chat_mode ? "say_team" : "say ", chat_buffer));
+                       CL_ForwardToServer(va(vabuf, sizeof(vabuf), "%s %s", chat_mode ? "say_team" : "say ", chat_buffer));
 
                key_dest = key_game;
                chat_bufferpos = Key_ClearEditLine(false);