mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
more localization
fixed issue with IW4 parser not reading map changes properly
This commit is contained in:
@ -73,11 +73,6 @@ namespace Application.EventParsers
|
||||
if (lineSplit[0].Contains("InitGame"))
|
||||
{
|
||||
string dump = cleanedEventLine.Replace("InitGame: ", "");
|
||||
string[] values = dump.Split('\\', StringSplitOptions.RemoveEmptyEntries);
|
||||
var dict = new Dictionary<string, string>();
|
||||
|
||||
for (int i = 0; i < values.Length; i += 2)
|
||||
dict.Add(values[i], values[i + 1]);
|
||||
|
||||
return new GameEvent()
|
||||
{
|
||||
@ -92,7 +87,7 @@ namespace Application.EventParsers
|
||||
ClientId = 1
|
||||
},
|
||||
Owner = server,
|
||||
Extra = dict
|
||||
Extra = dump.DictionaryFromKeyValue()
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user