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/GetAnimalsLocation.cs

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