mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
removed row and col usage from Draw_Character
This commit is contained in:
parent
46001cd9e7
commit
db71398238
1 changed files with 2 additions and 6 deletions
|
@ -285,7 +285,6 @@ void
|
||||||
Draw_Character (int x, int y, int num)
|
Draw_Character (int x, int y, int num)
|
||||||
{
|
{
|
||||||
float frow, fcol;
|
float frow, fcol;
|
||||||
int row, col;
|
|
||||||
|
|
||||||
if (num == 32)
|
if (num == 32)
|
||||||
return; // space
|
return; // space
|
||||||
|
@ -295,11 +294,8 @@ Draw_Character (int x, int y, int num)
|
||||||
if (y <= -8)
|
if (y <= -8)
|
||||||
return; // totally off screen
|
return; // totally off screen
|
||||||
|
|
||||||
row = num >> 4;
|
frow = (num >> 4) * CELL_SIZE;
|
||||||
col = num & 15;
|
fcol = (num & 15) * CELL_SIZE;
|
||||||
|
|
||||||
frow = row * CELL_SIZE;
|
|
||||||
fcol = col * CELL_SIZE;
|
|
||||||
|
|
||||||
qfglBindTexture (GL_TEXTURE_2D, char_texture);
|
qfglBindTexture (GL_TEXTURE_2D, char_texture);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue