ut_exec custom arg fix

git-svn-id: http://svn.code.sf.net/p/xqf/code/trunk@239 d2ac09be-c843-0410-8b1f-f8a84130e0ec
This commit is contained in:
Alex Burger 2002-10-13 18:07:48 +00:00 committed by alex_b
parent 2d8c8629de
commit f8637bf7f8
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,6 @@
Oct 13, 2002: Alex Burger <alex@fragit_dot_net>
- Minor fix to ut_exec if there are no custom arguments
Oct 13, 2002: Jordi Mallach <jordi@sindominio.net>
- add redial.c to POTFILES.
- updated Catalan and Spanish translations.

View File

@ -2559,6 +2559,10 @@ static int ut_exec (const struct condef *con, int forkit) {
int i = 0;
// Append additional args if needed
additional_args = get_custom_arguments(UN_SERVER, con->s->game);
if (!(additional_args && additional_args[i]))
argv[argi++] = real_server;
while(additional_args && additional_args[i] )
{
// append first argument to server address