fixed buffer overflow in config parsing
remove all default weapons restrictions
This commit is contained in:
parent
3b3ef4754b
commit
866b6bad64
2 changed files with 3 additions and 3 deletions
|
|
@ -29,7 +29,7 @@ ConVar yb_timerpickup ("yb_timerpickup", "0.5", VT_NOSERVER);
|
|||
ConVar yb_timergrenade ("yb_timergrenade", "0.5", VT_NOSERVER);
|
||||
|
||||
ConVar yb_chatter_path ("yb_chatter_path", "sound/radio/bot", VT_NOSERVER);
|
||||
ConVar yb_restricted_weapons ("yb_restricted_weapons", "ump45;elite;tmp;mac10;m3;xm1014");
|
||||
ConVar yb_restricted_weapons ("yb_restricted_weapons", "");
|
||||
|
||||
// game console variables
|
||||
ConVar mp_c4timer ("mp_c4timer", NULL, VT_NOREGISTER);
|
||||
|
|
|
|||
|
|
@ -482,7 +482,7 @@ void ParseVoiceEvent (const String &base, int type, float timeToRepeat)
|
|||
void InitConfig (void)
|
||||
{
|
||||
File fp;
|
||||
char line[256];
|
||||
char line[512];
|
||||
|
||||
KeywordFactory replyKey;
|
||||
|
||||
|
|
@ -812,7 +812,7 @@ void InitConfig (void)
|
|||
PARSE_VOICE_EVENT (Chatter_CoverMe, 3.5);
|
||||
PARSE_VOICE_EVENT (Chatter_BehindSmoke, 3.5);
|
||||
PARSE_VOICE_EVENT (Chatter_BombSiteSecured, 3.5);
|
||||
}
|
||||
}
|
||||
}
|
||||
fp.Close ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue