From 4b355c7aa8d0308f5e0b4bc4ee53e6da71bcc0b1 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Sun, 15 Aug 2004 19:23:50 +0000 Subject: [PATCH] - Fix --add when one server without type is specified whose port matches exactly one game. git-svn-id: http://svn.code.sf.net/p/xqf/code/trunk@650 d2ac09be-c843-0410-8b1f-f8a84130e0ec --- xqf/ChangeLog | 2 ++ xqf/src/xqf.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/xqf/ChangeLog b/xqf/ChangeLog index 4c34bef..b398fa5 100644 --- a/xqf/ChangeLog +++ b/xqf/ChangeLog @@ -1,5 +1,7 @@ Aug 15, 2004: Ludwig Nussel - Fix compile with gcc 2.95 (patch by Thomas Zajic) +- Fix --add when one server without type is specified whose port matches + exactly one game. Aug 14, 2004: Ludwig Nussel - Use TGA loader from quake2 if gdk-pixbuf fails to load a mapshot. Useful for diff --git a/xqf/src/xqf.c b/xqf/src/xqf.c index ede159e..cc7749d 100644 --- a/xqf/src/xqf.c +++ b/xqf/src/xqf.c @@ -3757,6 +3757,10 @@ gboolean check_cmdline_launch(gpointer nothing) { addrstring = add_server_dialog (&type, token[0]); } + else + { + addrstring = g_strdup(cmdline_add_server); + } } prepare_new_server_to_favorites(type, addrstring, cmdline_launch);