Reverted unnecessary changes. Compile still works without errors in this revision, confirmed 2009.05.02 18:00 +2.
Initializing blank strings on function declaration had no effect. Also the parameter can be treated as optional when it's actually not. Reverted to avoid confusion.
This commit is contained in:
@ -93,7 +93,7 @@ ConfigLoad()
|
||||
* @param file The cvar define of the path to the file.
|
||||
* @return True if the file exists, false if not.
|
||||
*/
|
||||
bool:ConfigGetFilePath(CvarsList:cvar, String:path[] = "")
|
||||
bool:ConfigGetFilePath(CvarsList:cvar, String:path[])
|
||||
{
|
||||
// Get cvar's path.
|
||||
decl String:filepath[PLATFORM_MAX_PATH];
|
||||
@ -313,10 +313,10 @@ bool:ConfigSettingToBool(const String:option[])
|
||||
* Converts boolean value to "yes" or "no".
|
||||
*
|
||||
* @param bOption True/false value to be converted to "yes"/"no", respectively.
|
||||
* @param option Variable to store "yes" or "no" in.
|
||||
* @param maxlen Max length of return string, (can't be more than 4)
|
||||
* @param option Destination string buffer to store "yes" or "no" in.
|
||||
* @param maxlen Length of destination string buffer (can't be more than 4).
|
||||
*/
|
||||
ConfigBoolToSetting(bool:bOption, String:option[] = "", maxlen)
|
||||
ConfigBoolToSetting(bool:bOption, String:option[], maxlen)
|
||||
{
|
||||
// If option is true, then copy "yes" to return string.
|
||||
if (bOption)
|
||||
|
Reference in New Issue
Block a user