Clean up: Bugs, LINQ, constructors, default values, and null checks (#18)

This commit is contained in:
Kamron Batman 2019-03-11 14:29:59 -07:00 committed by GitHub
parent e748af4430
commit 513e54f70e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1094 changed files with 15913 additions and 21892 deletions

View file

@ -124,7 +124,6 @@ namespace Server.PathAlgorithms.FastAStar
BaseCreature bc = m as BaseCreature;
int pathCount, parent;
int backtrack = 0, depth = 0;
Direction[] path = m_Path;
@ -182,8 +181,8 @@ namespace Server.PathAlgorithms.FastAStar
if (newNode != destNode)
continue;
pathCount = 0;
parent = m_Nodes[newNode].parent;
int pathCount = 0;
int parent = m_Nodes[newNode].parent;
while (parent != -1)
{