k...
This commit is contained in:
1 parent
c58848b298
commit
a55fabe4f9
1 file changed
+6
-7
+6
-7
@@ -9081,7 +9081,7 @@ static void K_GetScreenCoords(vector2_t *vec, player_t *player, camera_t *came,
|
||||
//Decided to port and highly modify sunflower version for the main nametag drawing with additions by NepDisk. My previous one was broken anyway due to the changed screencoords and noscalestart
|
||||
static void K_drawNameTags(void)
|
||||
{
|
||||
UINT8 i,j,k;
|
||||
UINT8 i,j;
|
||||
INT32 trans = 0;
|
||||
vector2_t pos = {0};
|
||||
fixed_t tagwidth;
|
||||
@@ -9161,9 +9161,9 @@ static void K_drawNameTags(void)
|
||||
}
|
||||
|
||||
dup = vid.dupx;
|
||||
|
||||
|
||||
K_GetScreenCoords(&pos, stplyr, camera, players[i].mo->x, players[i].mo->y, players[i].mo->z + players[i].mo->height);
|
||||
|
||||
|
||||
//Check for negative screencoords
|
||||
if (pos.x == -1 || pos.y == -1)
|
||||
continue;
|
||||
@@ -9331,8 +9331,7 @@ static void K_drawDriftGauge(void)
|
||||
|
||||
if (!stplyr->mo || !stplyr->kartstuff[k_drift] || !camera->chase)
|
||||
return;
|
||||
|
||||
|
||||
|
||||
if (!splitscreen)
|
||||
K_GetScreenCoords(&pos, stplyr, camera, stplyr->mo->x, stplyr->mo->y, stplyr->mo->z+FixedMul(cv_driftgaugeofs.value, cv_driftgaugeofs.value > 0 ? stplyr->mo->scale : mapobjectscale));
|
||||
else
|
||||
@@ -9341,7 +9340,7 @@ static void K_drawDriftGauge(void)
|
||||
for (j = 0; j <= stplyrnum; j++)
|
||||
K_GetScreenCoords(&pos, stplyr, &camera[j], stplyr->mo->x, stplyr->mo->y, stplyr->mo->z+FixedMul(cv_driftgaugeofs.value, cv_driftgaugeofs.value > 0 ? stplyr->mo->scale : mapobjectscale));
|
||||
}
|
||||
|
||||
|
||||
//Check for negative screencoords
|
||||
if (pos.x == -1 || pos.y == -1)
|
||||
return;
|
||||
@@ -9352,7 +9351,7 @@ static void K_drawDriftGauge(void)
|
||||
|
||||
basex = pos.x>>FRACBITS;
|
||||
basey = pos.y>>FRACBITS;
|
||||
|
||||
|
||||
fixed_t barx;
|
||||
fixed_t bary;
|
||||
INT32 BAR_WIDTH;
|
||||
|
||||
Reference in new issue
Block a user