Changeset 4593 for 2013/30


Ignore:
Timestamp:
2013-07-23 22:39:09 (6 years ago)
Author:
dezhidki
Message:

Optimoitu viimeisen päivityksen AStarin ominaisuutta.

Location:
2013/30/DenisZ/CastleMaster/CastleMaster/CastleMaster
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 2013/30/DenisZ/CastleMaster/CastleMaster/CastleMaster/Ai/AStar.cs

    r4590 r4593  
    6262            path.Clear(); 
    6363            calls = 0; 
     64 
     65            if(ignoreSolidnessForEnd) 
     66                tiles[xEnd + zEnd * level.Width] = false; 
    6467 
    6568#if DEBUG 
  • 2013/30/DenisZ/CastleMaster/CastleMaster/CastleMaster/World/Level.cs

    r4592 r4593  
    371371            for (int i = 0; i < tiles.Length; i++) 
    372372            { 
    373                 if (excludeEndSolidness && xEnd == i % width && zEnd == i / width) 
    374                 { 
    375                     result[i] = false; 
    376                     continue; 
    377                 } 
    378  
    379373                result[i] = tiles[i] == TILE_VOID || registeredTiles[tiles[i]].IsSolid; 
    380374 
Note: See TracChangeset for help on using the changeset viewer.