Quellcode durchsuchen

Using only one bucket

Nullkiller suggested that this change would help to further fix inconsistent behavior by the AI. I tested it and it did indeed fix different orders of how AI does things.

"Important to make count 1 to not relay on object addresses
They are source of random" - Nullkiller
Xilmi vor 1 Jahr
Ursprung
Commit
54c6d99de3
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      AI/Nullkiller/Pathfinding/AINodeStorage.h

+ 2 - 2
AI/Nullkiller/Pathfinding/AINodeStorage.h

@@ -27,8 +27,8 @@ namespace NKAI
 {
 namespace AIPathfinding
 {
-	const int BUCKET_COUNT = 3;
-	const int BUCKET_SIZE = 7;
+	const int BUCKET_COUNT = 1;
+	const int BUCKET_SIZE = 32;
 	const int NUM_CHAINS = BUCKET_COUNT * BUCKET_SIZE;
 	const int CHAIN_MAX_DEPTH = 4;
 }