mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
Fix drawing on others screens
This commit is contained in:
parent
57822f6756
commit
a0befdce2d
1 changed files with 2 additions and 2 deletions
|
|
@ -2262,7 +2262,7 @@ static void K_ObjectTracking(fixed_t *hud_x, fixed_t *hud_y, vertex_t *campos, a
|
||||||
{
|
{
|
||||||
*hud_x = FixedMul(NEWTAN(anglediff), swhalffixed) + swhalffixed;
|
*hud_x = FixedMul(NEWTAN(anglediff), swhalffixed) + swhalffixed;
|
||||||
|
|
||||||
if (*hud_x < -BASEVIDWIDTH * FRACUNIT || *hud_x > BASEVIDWIDTH * FRACUNIT)
|
if (*hud_x < 0 || *hud_x > BASEVIDWIDTH * FRACUNIT)
|
||||||
{
|
{
|
||||||
*hud_x = -1000 * FRACUNIT;
|
*hud_x = -1000 * FRACUNIT;
|
||||||
}
|
}
|
||||||
|
|
@ -2287,7 +2287,7 @@ static void K_ObjectTracking(fixed_t *hud_x, fixed_t *hud_y, vertex_t *campos, a
|
||||||
*hud_y = (*hud_y * swhalf) + shhalffixed;
|
*hud_y = (*hud_y * swhalf) + shhalffixed;
|
||||||
*hud_y = *hud_y + NEWTAN(camaim) * swhalf;
|
*hud_y = *hud_y + NEWTAN(camaim) * swhalf;
|
||||||
|
|
||||||
if (*hud_y < -BASEVIDHEIGHT * FRACUNIT || *hud_y > BASEVIDHEIGHT * FRACUNIT)
|
if (*hud_y < 0 || *hud_y > BASEVIDHEIGHT * FRACUNIT)
|
||||||
{
|
{
|
||||||
*hud_y = -1000 * FRACUNIT;
|
*hud_y = -1000 * FRACUNIT;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue