From 7f5a38a3f0aab6fbcb27a443827d6f7468db3183 Mon Sep 17 00:00:00 2001 From: proxin Date: Tue, 21 May 2024 11:17:54 +0300 Subject: [PATCH] Fix comment --- SpacerNET_Union/Spacer_Hooks.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SpacerNET_Union/Spacer_Hooks.cpp b/SpacerNET_Union/Spacer_Hooks.cpp index cb3b1cc..d08f3d3 100644 --- a/SpacerNET_Union/Spacer_Hooks.cpp +++ b/SpacerNET_Union/Spacer_Hooks.cpp @@ -838,14 +838,14 @@ namespace GOTHIC_ENGINE { for (int j = i - 1; j >= 0; j--) { void* upper = lower; lower = d(j); - if ((*compare)(upper, lower) < 0) { // ok. Ist im Moment BubbleSort. Was solls... + if ((*compare)(upper, lower) < 0) { swaps++; memcpy(&swapplace, upper, size); memcpy(upper, lower, size); memcpy(lower, &swapplace, size); } else - j = 0; // hier kann man die innere Schleife schon abbrechen. + j = 0; } if (falltoqs && swaps > 5 * i + 5) { qsort(data, num, size, compare); @@ -889,7 +889,7 @@ namespace GOTHIC_ENGINE { CString monsterName = sym->name; - // найдено + // found if (!foundPair.IsNull()) { foundPair.GetValue()->monsters.Insert(monsterName);