[quake3-commits] [ioquake/ioq3] 313064: Fix command line variables not being set correctly

Zack Middleton zack at cloemail.com
Wed Feb 22 16:21:50 EST 2017


  Branch: refs/heads/master
  Home:   https://github.com/ioquake/ioq3
  Commit: 313064baa4869888015471a6d827bb015dab9b46
      https://github.com/ioquake/ioq3/commit/313064baa4869888015471a6d827bb015dab9b46
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2017-02-22 (Wed, 22 Feb 2017)

  Changed paths:
    M code/qcommon/common.c

  Log Message:
  -----------
  Fix command line variables not being set correctly

+seta, +sets, and +setu were ignored because Com_AddStartupCommands
thought Com_StartupVariable handled it.

+set didn't allow value to be multiple tokens which due to Unix shell
unintuitively removing quotes causes the variable to only be set to
the first token. This could be worked around by escaping quotes

    ioq3ded +set g_motd \"hello world\"

but it doesn't match behavior of other start up commands (which now
includes seta, sets, and setu) that use all tokens.




More information about the quake3-commits mailing list