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
649b6c9c
Commit
649b6c9c
authored
6 years ago
by
Lactozilla
Browse files
Options
Downloads
Patches
Plain Diff
Remove MINIAUTOMAP code
parent
6b22dc18
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!488
Merge in next and don't billboard papersprites in GL
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/am_map.c
+2
-12
2 additions, 12 deletions
src/am_map.c
src/am_map.h
+0
-3
0 additions, 3 deletions
src/am_map.h
src/d_main.c
+2
-17
2 additions, 17 deletions
src/d_main.c
with
4 additions
and
32 deletions
src/am_map.c
+
2
−
12
View file @
649b6c9c
...
...
@@ -365,12 +365,6 @@ static void AM_LevelInit(void)
f_w
=
vid
.
width
;
f_h
=
vid
.
height
;
// Jimita
#ifdef MINIAUTOMAP
f_x
=
f_w
/
2
;
f_y
=
f_h
/
2
;
#endif
AM_drawFline
=
AM_drawFline_soft
;
#ifdef HWRENDER
if
(
rendermode
==
render_opengl
)
...
...
@@ -757,7 +751,6 @@ static void AM_drawFline_soft(const fline_t *fl, INT32 color)
#endif
#define PUTDOT(xx,yy,cc) V_DrawFill(xx,yy,1,1,cc|V_NOSCALESTART);
#define CLIPDOT (x >= f_x && y >= f_y && x < f_x + f_w && y < f_y + f_h)
dx
=
fl
->
b
.
x
-
fl
->
a
.
x
;
ax
=
2
*
(
dx
<
0
?
-
dx
:
dx
);
...
...
@@ -775,8 +768,7 @@ static void AM_drawFline_soft(const fline_t *fl, INT32 color)
d
=
ay
-
ax
/
2
;
for
(;;)
{
if
(
CLIPDOT
)
PUTDOT
(
x
,
y
,
color
)
PUTDOT
(
x
,
y
,
color
)
if
(
x
==
fl
->
b
.
x
)
return
;
if
(
d
>=
0
)
...
...
@@ -793,8 +785,7 @@ static void AM_drawFline_soft(const fline_t *fl, INT32 color)
d
=
ax
-
ay
/
2
;
for
(;;)
{
if
(
CLIPDOT
)
PUTDOT
(
x
,
y
,
color
)
PUTDOT
(
x
,
y
,
color
)
if
(
y
==
fl
->
b
.
y
)
return
;
if
(
d
>=
0
)
...
...
@@ -807,7 +798,6 @@ static void AM_drawFline_soft(const fline_t *fl, INT32 color)
}
}
#undef CLIPDOT
#undef PUTDOT
}
...
...
This diff is collapsed.
Click to expand it.
src/am_map.h
+
0
−
3
View file @
649b6c9c
...
...
@@ -31,9 +31,6 @@ typedef struct
#define AM_MSGENTERED (AM_MSGHEADER | ('e'<<8))
#define AM_MSGEXITED (AM_MSGHEADER | ('x'<<8))
// Jimita
//#define MINIAUTOMAP
extern
boolean
am_recalc
;
// true if screen size changes
extern
boolean
automapactive
;
// In AutoMap mode?
...
...
This diff is collapsed.
Click to expand it.
src/d_main.c
+
2
−
17
View file @
649b6c9c
...
...
@@ -319,6 +319,7 @@ static void D_Display(void)
if
(
!
gametic
)
break
;
HU_Erase
();
AM_Drawer
();
break
;
case
GS_INTERMISSION
:
...
...
@@ -375,19 +376,7 @@ static void D_Display(void)
if
(
gamestate
==
GS_LEVEL
)
{
// draw the view directly
boolean
dorenderview
=
cv_renderview
.
value
;
boolean
dorenderautomap
=
false
;
// Jimita
if
(
automapactive
)
{
dorenderautomap
=
true
;
#ifndef MINIAUTOMAP
dorenderview
=
false
;
#endif
}
if
(
dorenderview
)
if
(
cv_renderview
.
value
&&
!
automapactive
)
{
if
(
players
[
displayplayer
].
mo
||
players
[
displayplayer
].
playerstate
==
PST_DEAD
)
{
...
...
@@ -444,10 +433,6 @@ static void D_Display(void)
lastdraw
=
false
;
}
// Jimita
if
(
dorenderautomap
)
AM_Drawer
();
ST_Drawer
();
HU_Drawer
();
}
...
...
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