Skip to content
GitLab
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
f6ab7c7e
Commit
f6ab7c7e
authored
Jun 26, 2022
by
Richard Gobeille
Browse files
engine: don't try to draw voxels in polymer, because we don't support that yet
parent
4b58caf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/build/src/polymer.cpp
View file @
f6ab7c7e
...
...
@@ -1533,9 +1533,12 @@ void polymer_drawsprite(int32_t snum)
calc_and_apply_fog
(
fogshade
(
tspr
->
shade
,
tspr
->
pal
),
sec
->
visibility
,
get_floor_fogpal
((
usectorptr_t
)
&
sector
[
tspr
->
sectnum
]));
handle_blend
(
!!
(
tspr
->
cstat
&
CSTAT_SPRITE_TRANSLUCENT
),
tspr
->
blend
,
!!
(
tspr
->
cstat
&
CSTAT_SPRITE_TRANSLUCENT_INVERT
));
if
(
usemodels
&&
tile2model
[
Ptile2tile
(
tspr
->
picnum
,
tspr
->
pal
)].
modelid
>=
0
&&
tile2model
[
Ptile2tile
(
tspr
->
picnum
,
tspr
->
pal
)].
framenum
>=
0
&&
!
(
spriteext
[
spritenum
].
flags
&
SPREXT_NOTMD
))
int32_t
pTile
=
Ptile2tile
(
tspr
->
picnum
,
tspr
->
pal
);
if
(
usemodels
&&
tile2model
[
pTile
].
modelid
>=
0
&&
tile2model
[
pTile
].
framenum
>=
0
&&
!
(
spriteext
[
spritenum
].
flags
&
SPREXT_NOTMD
)
&&
models
[
tile2model
[
pTile
].
modelid
]
->
mdnum
!=
1
)
{
buildgl_setEnabled
(
GL_CULL_FACE
);
SWITCH_CULL_DIRECTION
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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