Changeset 326 for binary-improvements/7dtd-server-fixes/src/LiveData
- Timestamp:
- Sep 4, 2018, 2:33:52 PM (6 years ago)
- Location:
- binary-improvements/7dtd-server-fixes/src/LiveData
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/LiveData/Animals.cs
r325 r326 4 4 5 5 protected override EntityAnimal predicate (Entity _e) { 6 if (_e is EntityAnimal) { 7 EntityAnimal ea = (EntityAnimal) _e; 8 9 if (ea.IsAlive ()) { 10 return ea; 11 } 6 EntityAnimal ea = _e as EntityAnimal; 7 if (ea != null && ea.IsAlive ()) { 8 return ea; 12 9 } 13 10 -
binary-improvements/7dtd-server-fixes/src/LiveData/Hostiles.cs
r325 r326 4 4 5 5 protected override EntityEnemy predicate (Entity _e) { 6 if (_e is EntityEnemy) { 7 if (_e.IsAlive ()) { 8 return _e as EntityEnemy; 9 } 6 EntityEnemy enemy = _e as EntityEnemy; 7 if (enemy != null && enemy.IsAlive ()) { 8 return enemy; 10 9 } 11 10
Note:
See TracChangeset
for help on using the changeset viewer.