mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-23 10:52:36 +01:00
- pretty ProcessLowDetailTable
This commit is contained in:
parent
989b1c1d1b
commit
5dfc2e3f76
@ -1275,36 +1275,17 @@ void ProcessSubDivisionLump(char *lump_ptr, int lump_size)
|
|||||||
// [D]
|
// [D]
|
||||||
void ProcessLowDetailTable(char *lump_ptr, int lump_size)
|
void ProcessLowDetailTable(char *lump_ptr, int lump_size)
|
||||||
{
|
{
|
||||||
ushort *puVar1;
|
int i;
|
||||||
int iVar2;
|
|
||||||
|
|
||||||
MODEL **ppMVar3;
|
|
||||||
MODEL **ppMVar4;
|
|
||||||
|
|
||||||
puVar1 = (ushort *)(lump_ptr + num_models_in_pack * 2);
|
|
||||||
Low2HighDetailTable = (ushort *)lump_ptr;
|
Low2HighDetailTable = (ushort *)lump_ptr;
|
||||||
Low2LowerDetailTable = puVar1;
|
Low2LowerDetailTable = (ushort *)(lump_ptr + num_models_in_pack * 2);
|
||||||
|
|
||||||
if (0 < num_models_in_pack)
|
for (i = 0; i < num_models_in_pack; i++)
|
||||||
{
|
{
|
||||||
ppMVar3 = pLodModels;
|
if (Low2LowerDetailTable[i] == 0xFFFF)
|
||||||
ppMVar4 = modelpointers;
|
pLodModels[i] = modelpointers[i];
|
||||||
iVar2 = num_models_in_pack;
|
else
|
||||||
do {
|
pLodModels[i] = modelpointers[Low2LowerDetailTable[i]];
|
||||||
if (*puVar1 == 0xffff)
|
|
||||||
{
|
|
||||||
*ppMVar3 = *ppMVar4;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
*ppMVar3 = modelpointers[*puVar1];
|
|
||||||
}
|
|
||||||
|
|
||||||
ppMVar3 = ppMVar3 + 1;
|
|
||||||
ppMVar4 = ppMVar4 + 1;
|
|
||||||
iVar2 = iVar2 + -1;
|
|
||||||
puVar1 = puVar1 + 1;
|
|
||||||
} while (iVar2 != 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user