Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wolf3d
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
wolf3d
Commits
99c9eb09
Commit
99c9eb09
authored
Apr 23, 2000
by
Steven Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Few more cleanups, dead code removal..
parent
198b980c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
41 deletions
+9
-41
id_us.c
src/id_us.c
+0
-12
id_us.h
src/id_us.h
+9
-21
wl_game.c
src/wl_game.c
+0
-8
No files found.
src/id_us.c
View file @
99c9eb09
...
@@ -157,18 +157,6 @@ void US_PrintUnsigned(longword n)
...
@@ -157,18 +157,6 @@ void US_PrintUnsigned(longword n)
US_Print
(
ultoa
(
n
,
buffer
,
10
));
US_Print
(
ultoa
(
n
,
buffer
,
10
));
}
}
///////////////////////////////////////////////////////////////////////////
//
// US_PrintSigned() - Prints a signed long
//
///////////////////////////////////////////////////////////////////////////
void
US_PrintSigned
(
long
n
)
{
char
buffer
[
32
];
US_Print
(
ltoa
(
n
,
buffer
,
10
));
}
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////
//
//
// USL_PrintInCenter() - Prints a string in the center of the given rect
// USL_PrintInCenter() - Prints a string in the center of the given rect
...
...
src/id_us.h
View file @
99c9eb09
...
@@ -6,29 +6,20 @@
...
@@ -6,29 +6,20 @@
#define MaxHighName 57
#define MaxHighName 57
#define MaxScores 7
#define MaxScores 7
typedef
struct
typedef
struct
{
{
char
name
[
MaxHighName
+
1
];
char
name
[
MaxHighName
+
1
];
long
score
;
long
score
;
word
completed
,
episode
;
word
completed
,
episode
;
}
HighScore
;
}
HighScore
;
#define MaxString 128 // Maximum input string size
#define MaxString 128 // Maximum input string size
typedef
struct
{
int
x
,
y
,
w
,
h
,
px
,
py
;
}
WindowRec
;
// Record used to save & restore screen windows
extern
boolean
ingame
,
// Set by game code if a game is in progress
extern
boolean
ingame
,
// Set by game code if a game is in progress
abortgame
,
// Set if a game load failed
loadedgame
,
// Set if the current game was loaded
loadedgame
,
// Set if the current game was loaded
NoWait
;
NoWait
;
extern
word
PrintX
,
PrintY
;
// Current printing location in the window
extern
word
PrintX
,
PrintY
;
// Current printing location in the window
extern
word
WindowX
,
WindowY
,
// Current location of window
extern
word
WindowX
,
WindowY
,
// Current location of window
WindowW
,
WindowH
;
// Current size of window
WindowW
,
WindowH
;
// Current size of window
extern
void
(
*
USL_MeasureString
)(
char
*
,
word
*
,
word
*
),
extern
void
(
*
USL_MeasureString
)(
char
*
,
word
*
,
word
*
),
(
*
USL_DrawString
)(
char
*
);
(
*
USL_DrawString
)(
char
*
);
...
@@ -36,7 +27,6 @@ extern void (*USL_MeasureString)(char *,word *,word *),
...
@@ -36,7 +27,6 @@ extern void (*USL_MeasureString)(char *,word *,word *),
extern
HighScore
Scores
[];
extern
HighScore
Scores
[];
void
US_Startup
(
void
),
void
US_Startup
(
void
),
US_Setup
(
void
),
US_Shutdown
(
void
),
US_Shutdown
(
void
),
US_InitRndT
(
boolean
randomize
),
US_InitRndT
(
boolean
randomize
),
US_DrawWindow
(
word
x
,
word
y
,
word
w
,
word
h
),
US_DrawWindow
(
word
x
,
word
y
,
word
w
,
word
h
),
...
@@ -45,9 +35,7 @@ void US_Startup(void),
...
@@ -45,9 +35,7 @@ void US_Startup(void),
US_CPrint
(
char
*
s
),
US_CPrint
(
char
*
s
),
US_CPrintLine
(
char
*
s
),
US_CPrintLine
(
char
*
s
),
US_Print
(
char
*
s
),
US_Print
(
char
*
s
),
US_PrintUnsigned
(
longword
n
),
US_PrintUnsigned
(
longword
n
);
US_PrintSigned
(
long
n
),
US_CheckHighScore
(
long
score
,
word
other
);
boolean
US_LineInput
(
int
x
,
int
y
,
char
*
buf
,
char
*
def
,
boolean
escok
,
boolean
US_LineInput
(
int
x
,
int
y
,
char
*
buf
,
char
*
def
,
boolean
escok
,
int
maxchars
,
int
maxwidth
);
int
maxchars
,
int
maxwidth
);
int
US_CheckParm
(
char
*
parm
,
char
**
strings
),
int
US_CheckParm
(
char
*
parm
,
char
**
strings
),
...
...
src/wl_game.c
View file @
99c9eb09
...
@@ -138,14 +138,6 @@ SetSoundLoc(fixed gx,fixed gy)
...
@@ -138,14 +138,6 @@ SetSoundLoc(fixed gx,fixed gy)
x
=
ATABLEMAX
-
1
;
x
=
ATABLEMAX
-
1
;
leftchannel
=
lefttable
[
x
][
y
+
ATABLEMAX
];
leftchannel
=
lefttable
[
x
][
y
+
ATABLEMAX
];
rightchannel
=
righttable
[
x
][
y
+
ATABLEMAX
];
rightchannel
=
righttable
[
x
][
y
+
ATABLEMAX
];
#if 0
CenterWindow(8,1);
US_PrintSigned(leftchannel);
US_Print(",");
US_PrintSigned(rightchannel);
VW_UpdateScreen();
#endif
}
}
/*
/*
...
...
Write
Preview
Markdown
is supported
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