Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Richard Gobeille
EDuke32
Commits
d6cce53b
Commit
d6cce53b
authored
May 24, 2022
by
Richard Gobeille
Browse files
engine: fix defect in
819cdcbd
parent
f079384f
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/build/src/cache1d.cpp
View file @
d6cce53b
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment