Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
5f1e3bab
Commit
5f1e3bab
authored
5 years ago
by
Lactozilla
Browse files
Options
Downloads
Patches
Plain Diff
struct time
parent
4e0a7030
No related branches found
No related tags found
2 merge requests
!734
Rebase Keycodes only branch.
,
!578
Software clownery
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/r_bsp.c
+1
-1
1 addition, 1 deletion
src/r_bsp.c
src/r_main.c
+3
-3
3 additions, 3 deletions
src/r_main.c
src/r_segs.c
+197
-209
197 additions, 209 deletions
src/r_segs.c
src/r_state.h
+18
-5
18 additions, 5 deletions
src/r_state.h
with
219 additions
and
218 deletions
src/r_bsp.c
+
1
−
1
View file @
5f1e3bab
...
...
@@ -410,7 +410,7 @@ static void R_AddLine(seg_t *line)
return
;
// Global angle needed by segcalc.
rw
_
angle1
=
angle1
;
rw
.
angle1
=
angle1
;
angle1
-=
viewangle
;
angle2
-=
viewangle
;
...
...
This diff is collapsed.
Click to expand it.
src/r_main.c
+
3
−
3
View file @
5f1e3bab
...
...
@@ -364,7 +364,7 @@ angle_t R_PointToAngleEx(INT32 x2, INT32 y2, INT32 x1, INT32 y1)
// R_ScaleFromGlobalAngle
// Returns the texture mapping scale for the current line (horizontal span)
// at the given angle.
// rw
_
distance must be calculated first.
// rw
.
distance must be calculated first.
//
// killough 5/2/98: reformatted, cleaned up
//
...
...
@@ -372,8 +372,8 @@ angle_t R_PointToAngleEx(INT32 x2, INT32 y2, INT32 x1, INT32 y1)
fixed_t
R_ScaleFromGlobalAngle
(
angle_t
visangle
)
{
angle_t
anglea
=
ANGLE_90
+
(
visangle
-
viewangle
);
angle_t
angleb
=
ANGLE_90
+
(
visangle
-
rw
_
normalangle
);
fixed_t
den
=
FixedMul
(
rw
_
distance
,
FINESINE
(
anglea
>>
ANGLETOFINESHIFT
));
angle_t
angleb
=
ANGLE_90
+
(
visangle
-
rw
.
normalangle
);
fixed_t
den
=
FixedMul
(
rw
.
distance
,
FINESINE
(
anglea
>>
ANGLETOFINESHIFT
));
// proff 11/06/98: Changed for high-res
fixed_t
num
=
FixedMul
(
projectiony
,
FINESINE
(
angleb
>>
ANGLETOFINESHIFT
));
...
...
This diff is collapsed.
Click to expand it.
src/r_segs.c
+
197
−
209
View file @
5f1e3bab
This diff is collapsed.
Click to expand it.
src/r_state.h
+
18
−
5
View file @
5f1e3bab
...
...
@@ -93,10 +93,23 @@ extern angle_t doubleclipangle;
extern
INT32
viewangletox
[
FINEANGLES
/
2
];
extern
angle_t
xtoviewangle
[
MAXVIDWIDTH
+
1
];
extern
fixed_t
rw_distance
;
extern
angle_t
rw_normalangle
;
// angle to line origin
extern
angle_t
rw_angle1
;
// Wall rendering
typedef
struct
{
INT32
x
,
stopx
;
angle_t
centerangle
;
fixed_t
offset
;
fixed_t
offset2
;
// for splats
fixed_t
scale
,
scalestep
;
fixed_t
midtexturemid
,
toptexturemid
,
bottomtexturemid
;
#ifdef ESLOPE
fixed_t
toptextureslide
,
midtextureslide
,
bottomtextureslide
;
// Defines how to adjust Y offsets along the wall for slopes
fixed_t
midtextureback
,
midtexturebackslide
;
// Values for masked midtexture height calculation
#endif
fixed_t
distance
;
angle_t
normalangle
;
angle_t
angle1
;
// angle to line origin
}
renderwall_t
;
extern
renderwall_t
rw
;
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment