Ignore:
Timestamp:
Aug 2, 2017, 6:46:15 PM (7 years ago)
Author:
alloc
Message:

Fixes update A16.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/Web/API/GetHostileLocation.cs

    r251 r306  
    99    class GetHostileLocation : WebAPI
    1010    {
     11                private List<EntityEnemy> enemies = new List<EntityEnemy> ();
     12
    1113        public override void HandleRequest(HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel)
    1214        {
    1315            JSONArray hostilesJsResult = new JSONArray();
    1416
    15             foreach (EntityEnemy entity in Hostiles.List)
     17                        Hostiles.Get (enemies);
     18                        for (int i = 0; i < enemies.Count; i++)
    1619            {
     20                                EntityEnemy entity = enemies [i];
    1721                Vector3i position = new Vector3i(entity.GetPosition());
    1822
Note: See TracChangeset for help on using the changeset viewer.