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
8cf7e9fb
Commit
8cf7e9fb
authored
Apr 05, 2022
by
nukeykt
Browse files
engine: fix wall sprite rendering glitch on wallpoint intersection
parent
8c460c2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/build/src/engine.cpp
View file @
8cf7e9fb
...
...
@@ -5872,14 +5872,14 @@ draw_as_face_sprite:
z1 = (xp2-xp1)*(y1-yp1) - (yp2-yp1)*(x1-xp1);
z2 = (xp2-xp1)*(y2-yp1) - (yp2-yp1)*(x2-xp1);
if
((
z1
^
z2
)
>=
0
)
if ((z1^z2) >=
0 || z1 == 0 || z2 ==
0)
x = (z1+z2);
else
{
z1 = (x2-x1)*(yp1-y1) - (y2-y1)*(xp1-x1);
z2 = (x2-x1)*(yp2-y1) - (y2-y1)*(xp2-x1);
if
((
z1
^
z2
)
>=
0
)
if ((z1^z2) >=
0 || z1 == 0 || z2 ==
0)
x = -(z1+z2);
else
{
...
...
Richard Gobeille
@terminx
mentioned in commit
b9e67132
·
Apr 16, 2022
mentioned in commit
b9e67132
mentioned in commit b9e67132ccdaaec6ffcc915296f22e52f86841c9
Toggle commit list
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