Commit d6cce53b authored by Richard Gobeille's avatar Richard Gobeille
Browse files

engine: fix defect in 819cdcbd

parent f079384f
......@@ -313,8 +313,12 @@ void cache1d::report(void)
if (classicht[j].ptr)
inthash_add(&h_blocktotile, classicht[j].ptr, j, true);
if (tiletovox[j] != -1 && voxoff[tiletovox[j]])
inthash_add(&h_blocktotile, (intptr_t)voxoff[tiletovox[j]], j, true);
if (tiletovox[j] != -1)
{
for (int i=0; i<MAXVOXMIPS; i++)
if (voxoff[tiletovox[j]][i])
inthash_add(&h_blocktotile, (intptr_t)voxoff[tiletovox[j]][i], j, true);
}
}
LOG_F(INFO, "Block listing:");
......@@ -361,7 +365,7 @@ void cache1d::report(void)
{
auto typestr = *m_index[i].hand == waloff[tile] ? "ART:%4d " :
*m_index[i].hand == classicht[tile].ptr ? "HI:%4d " :
*m_index[i].hand == (intptr_t)voxoff[tile] ? "VOX:%4d " : "???";
"VOX:%4d "; // needs to be last or else we have to loop through voxoff[tile][]
len += Bsnprintf(buf + len, reportLineSize - len, typestr, tile);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment