Skip to content

Commit

Permalink
Whoopsie lower-case is not supported, using translate now (which is)
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Teach committed Mar 6, 2011
1 parent 6918ca4 commit a3946ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Questor.Modules/Cache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ public void RefreshMissionItems(long agentId)
try
{
var xdoc = XDocument.Load(missionXmlPath);
var items = ((IEnumerable)xdoc.XPathEvaluate("//action[(lower-case(@name)='loot') or (lower-case(@name)='lootitem')]/parameter[lower-case(@name)='item']/@value")).Cast<XAttribute>().Select(a => (string)a);
var items = ((IEnumerable)xdoc.XPathEvaluate("//action[(translate(@name, 'LOT', 'lot')='loot') or (translate(@name, 'LOTIEM', 'lotiem')='lootitem')]/parameter[translate(@name, 'TIEM', 'tiem')='item']/@value")).Cast<XAttribute>().Select(a => (string)a);
MissionItems.AddRange(items);

BringMissionItem = (string) xdoc.Root.Element("bring");
Expand Down

0 comments on commit a3946ba

Please sign in to comment.