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
Show 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)
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
...
...
src/id_us.h
View file @
99c9eb09
...
...
@@ -6,24 +6,15 @@
#define MaxHighName 57
#define MaxScores 7
typedef
struct
{
typedef
struct
{
char
name
[
MaxHighName
+
1
];
long
score
;
word
completed
,
episode
;
}
HighScore
;
}
HighScore
;
#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
abortgame
,
// Set if a game load failed
loadedgame
,
// Set if the current game was loaded
NoWait
;
extern
word
PrintX
,
PrintY
;
// Current printing location in the window
...
...
@@ -36,7 +27,6 @@ extern void (*USL_MeasureString)(char *,word *,word *),
extern
HighScore
Scores
[];
void
US_Startup
(
void
),
US_Setup
(
void
),
US_Shutdown
(
void
),
US_InitRndT
(
boolean
randomize
),
US_DrawWindow
(
word
x
,
word
y
,
word
w
,
word
h
),
...
...
@@ -45,9 +35,7 @@ void US_Startup(void),
US_CPrint
(
char
*
s
),
US_CPrintLine
(
char
*
s
),
US_Print
(
char
*
s
),
US_PrintUnsigned
(
longword
n
),
US_PrintSigned
(
long
n
),
US_CheckHighScore
(
long
score
,
word
other
);
US_PrintUnsigned
(
longword
n
);
boolean
US_LineInput
(
int
x
,
int
y
,
char
*
buf
,
char
*
def
,
boolean
escok
,
int
maxchars
,
int
maxwidth
);
int
US_CheckParm
(
char
*
parm
,
char
**
strings
),
...
...
src/wl_game.c
View file @
99c9eb09
...
...
@@ -138,14 +138,6 @@ SetSoundLoc(fixed gx,fixed gy)
x
=
ATABLEMAX
-
1
;
leftchannel
=
lefttable
[
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