mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: client: add double quotes around key in bind command in config file. Thanks @TheKingFireS for fix
This commit is contained in:
@@ -462,7 +462,12 @@ void Key_WriteBindings( file_t *f )
|
||||
continue;
|
||||
|
||||
Cmd_Escape( newCommand, keys[i].binding, sizeof( newCommand ));
|
||||
FS_Printf( f, "bind %s \"%s\"\n", Key_KeynumToString( i ), newCommand );
|
||||
|
||||
// NOTE: as TheKingFireS figured out, some particular mods (like CoF) do not
|
||||
// use LookupBinding to find key by it's binding and instead parse config.cfg
|
||||
// to look for bind commands.
|
||||
// CoF expects key to be enclosed in double quotes
|
||||
FS_Printf( f, "bind \"%s\" \"%s\"\n", Key_KeynumToString( i ), newCommand );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user