changed int to an unsigned int

This commit is contained in:
Chris Ison 2001-12-17 23:41:58 +00:00
parent db71398238
commit 1c26723864
4 changed files with 6 additions and 6 deletions

View file

@ -35,7 +35,7 @@ extern qpic_t *draw_disc; // also used on sbar
void Draw_Init (void);
void Draw_Init_Cvars (void);
void Draw_Character (int x, int y, int num);
void Draw_Character (int x, int y, unsigned int num);
void Draw_Pic (int x, int y, qpic_t *pic);
void Draw_SubPic(int x, int y, qpic_t *pic, int srcx, int srcy, int width, int height);
void Draw_TextBox (int x, int y, int width, int lines, byte alpha);

View file

@ -282,18 +282,18 @@ Draw_Init (void)
smoothly scrolled off.
*/
void
Draw_Character (int x, int y, int num)
Draw_Character (int x, int y, unsigned int num)
{
float frow, fcol;
if (num == 32)
return; // space
num &= 255;
if (y <= -8)
return; // totally off screen
num &= 255;
frow = (num >> 4) * CELL_SIZE;
fcol = (num & 15) * CELL_SIZE;

View file

@ -199,7 +199,7 @@ Draw_Init (void)
smoothly scrolled off.
*/
void
Draw_Character (int x, int y, int num)
Draw_Character (int x, int y, unsigned int num)
{
byte *dest;
byte *source;

View file

@ -199,7 +199,7 @@ Draw_Init (void)
smoothly scrolled off.
*/
void
Draw_Character (int x, int y, int num)
Draw_Character (int x, int y, unsigned int num)
{
byte *source;
int drawline;