Ignore:
Timestamp:
2014-07-24 16:00:16 (6 years ago)
Author:
anlakane
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2014/30/MiskaK/The Reclaim/The Reclaim/The Reclaim/The Reclaim/LivingEntity.cs

    r5602 r5649  
    7070        List<Vector> reitti = new List<Vector>(); 
    7171 
    72         /*if (this.SeesTarget(destination, x => x is PhysicsObject)) 
    73             reitti.Add(destination);*/ 
     72        if (this.SeesTarget(destination, "seina")) 
     73            reitti.Add(destination); 
    7474 
    75         //else 
    76         //{ 
     75        else 
     76        { 
    7777            reitti = The_Reclaim.Peli.NavigationMesh.GetRouteCoordinates( 
    7878                The_Reclaim.Peli.NavigationMesh.DijkstraSearch( 
    7979                The_Reclaim.Peli.NavigationMesh.GetCorrespondingNode(this.Position),  
    8080                The_Reclaim.Peli.NavigationMesh.GetCorrespondingNode(destination))); 
    81         //} 
     81        } 
    8282        reitti[reitti.Count - 1] += RandomGen.NextVector(-GameConstants.TILE_WIDTH / 2, GameConstants.TILE_WIDTH / 2); // etteivät sotilaat menisi päällekkäin 
    8383        ReittiAivot.Path = reitti; 
     
    9494        if (Kuoli != null) 
    9595            Kuoli(); 
    96  
    9796        this.Destroy(); 
    9897    } 
Note: See TracChangeset for help on using the changeset viewer.