aboutsummaryrefslogtreecommitdiff
path: root/dep/CascLib/src/CascRootFile_MNDX.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-06-23 10:25:18 +0200
committerShauren <shauren.trinity@gmail.com>2023-06-23 10:25:18 +0200
commit9ad1e5d635e2fd4c2486d5f2bf1cb52d8e768558 (patch)
tree00b379e3f84ff5b428f0fafd5bdeac0489ede0c4 /dep/CascLib/src/CascRootFile_MNDX.cpp
parent54596eb8ce5d7933164073eb3768f52124ba4262 (diff)
Dep/CascLib: Update to ladislav-zezula/CascLib@ebd79e8fd43279343c543a27fce620f6b1b53cb9
Diffstat (limited to 'dep/CascLib/src/CascRootFile_MNDX.cpp')
-rw-r--r--dep/CascLib/src/CascRootFile_MNDX.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/dep/CascLib/src/CascRootFile_MNDX.cpp b/dep/CascLib/src/CascRootFile_MNDX.cpp
index 9b820c0d639..8075dce3a2b 100644
--- a/dep/CascLib/src/CascRootFile_MNDX.cpp
+++ b/dep/CascLib/src/CascRootFile_MNDX.cpp
@@ -660,7 +660,7 @@ class TBitEntryArray : public TGenericArray<DWORD>
#define INDEX_TO_GROUP(val) (val >> 9)
#define GROUP_TO_INDEX(grp) (grp << 9)
-// For each 0x200-th bit, this contains information about amount of "1" bits
+// For each 0x200-th bit, this contains information about amount of "1" bits
typedef struct _BASEVALS
{
DWORD BaseValue200; // Item value of every 0x200-th item
@@ -791,7 +791,7 @@ class TSparseArray
if(index & 0x20)
IntValue += GetNumberOfSetBits32(ItemBits[(index >> 0x05) - 1]);
- // 4) Count the bits in the current DWORD (masked by bit index mask)
+ // 4) Count the bits in the current DWORD (masked by bit index mask)
BitMask = (1 << (index & 0x1F)) - 1;
return IntValue + GetNumberOfSetBits32(ItemBits[index >> 0x05] & BitMask);
}
@@ -888,7 +888,7 @@ class TSparseArray
DWORD bitGroup;
DWORD edx = index;
-#ifdef _DEBUG
+#ifdef CASCLIB_DEBUG
//if(TotalItemCount > 0x200)
//{
// FILE * fp = fopen("e:\\Ladik\\Appdir\\CascLib\\doc\\mndx-sparse-array.txt", "wt");
@@ -1177,7 +1177,7 @@ class TSparseArray
return table_1BA1818[bitGroup + distFromBase] + itemIndex;
}
-#ifdef _DEBUG
+#ifdef CASCLIB_DEBUG
void Dump(FILE * fp)
{
size_t * ArrayNormal;
@@ -1868,7 +1868,7 @@ class TFileNameDatabase
// Get the hasn table item
pHashEntry = &HashTable[TableIndex & HashTableMask];
- //
+ //
if(TableIndex == pHashEntry->NextIndex)
{
// HOTS: 01957BB4
@@ -2467,7 +2467,7 @@ class TFileNameDatabase
TSparseArray CollisionTable; // Table of valid collisions, indexed by NodeIndex
TSparseArray FileNameIndexes; // Array of file name indexes
- TSparseArray CollisionHiBitsIndexes; // Table of indexes of high bits (above 8 bits) for collisions
+ TSparseArray CollisionHiBitsIndexes; // Table of indexes of high bits (above 8 bits) for collisions
// This pair of arrays serves for fast conversion from node index to FragmentOffset / FragmentChar
TGenericArray<BYTE> LoBitsTable; // Array of lower 8 bits of name fragment offset