Commit 99c9eb09 authored by Steven Fuller's avatar Steven Fuller

Few more cleanups, dead code removal..

parent 198b980c
...@@ -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
......
...@@ -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),
......
...@@ -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
} }
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment