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
Jordon Moss
EDuke32-CSRefactor
Commits
b4d1041f
Commit
b4d1041f
authored
Aug 18, 2021
by
Richard Gobeille
Browse files
editor: skip drawing sprites in textured view if the sector is grayed out
parent
0ffad646
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/duke3d/src/astub.cpp
View file @
b4d1041f
...
...
@@ -10271,14 +10271,18 @@ void ExtPreCheckKeys(void) // just before drawrooms
{
for
(
i
=
ii
=
0
;
i
<
MAXSPRITES
&&
ii
<
Numsprites
;
i
++
)
{
int32_t
daang
=
0
,
flags
,
shade
;
int32_t
picnum
,
frames
;
auto
pSprite
=
(
uspriteptr_t
)
&
sprite
[
i
];
if
((
pSprite
->
cstat
&
48
)
!=
0
||
pSprite
->
statnum
==
MAXSTATUS
||
(
unsigned
)
pSprite
->
sectnum
>=
MAXSECTORS
)
continue
;
if
(
bitmap_test
(
graysectbitmap
,
pSprite
->
sectnum
))
continue
;
int
daang
=
0
,
flags
=
0
,
shade
=
0
,
frames
=
0
;
int
picnum
=
pSprite
->
picnum
;
int32_t
xp1
,
yp1
;
if
((
sprite
[
i
].
cstat
&
48
)
!=
0
||
sprite
[
i
].
statnum
==
MAXSTATUS
)
continue
;
ii
++
;
picnum
=
sprite
[
i
].
picnum
;
daang
=
flags
=
frames
=
shade
=
0
;
switch
(
picnum
)
{
...
...
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