Bug 4063 - Cvar_Command only uses the first argument
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: unspecified
Hardware: PC Linux
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2009-05-07 17:18 EDT by Ben Millwood
Modified: 2009-05-08 05:13:04 EDT
0 users

See Also:


Attachments
use Cmd_Args() instead of Cmd_Argv(1) (378 bytes, patch)
2009-05-07 17:18 EDT, Ben Millwood

Description Ben Millwood 2009-05-07 17:18:04 EDT
Created attachment 2059 [details]
use Cmd_Args() instead of Cmd_Argv(1)

Setting a cvar using only its name doesn't handle values with space very well - it drops arguments after the second.

One-line patch.
Comment 1 Ludwig Nussel 2009-05-08 05:13:04 EDT
applied, thanks

PS: you seem to be using git already so if you'd use "git format-patch" to create the patch I could use "git am" to apply it which simplifies things :-)