1
0
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:
RaidMax
2018-04-24 17:01:27 -05:00
parent 3918985406
commit 5e229b90be
32 changed files with 1186 additions and 772 deletions

View File

@ -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()
};
}