mirror of
https://github.com/nzp-team/quakespasm.git
synced 2024-11-12 23:44:06 +00:00
VITA: Fix point positions on the HUD
This commit is contained in:
parent
9bfb2cc24d
commit
3e574000da
1 changed files with 5 additions and 5 deletions
|
@ -353,7 +353,7 @@ void HUD_Parse_Point_Change (int points, int negative, int x_start, int y_start)
|
||||||
|
|
||||||
f = HUD_itoa (points, str);
|
f = HUD_itoa (points, str);
|
||||||
#ifdef VITA
|
#ifdef VITA
|
||||||
point_change[i].x = x_start - 10.0 - 4.0*f;
|
point_change[i].x = x_start + 64.0 + 4.0*f;
|
||||||
#else
|
#else
|
||||||
point_change[i].x = x_start - 10.0 - 8.0*f;
|
point_change[i].x = x_start - 10.0 - 8.0*f;
|
||||||
#endif
|
#endif
|
||||||
|
@ -427,7 +427,7 @@ void HUD_Points (void)
|
||||||
xplus = HUD_itoa (f, str);
|
xplus = HUD_itoa (f, str);
|
||||||
|
|
||||||
#ifdef VITA
|
#ifdef VITA
|
||||||
Draw_ColoredStringScale (106 - (xplus*16), 415, va("%i", current_points), 1, 1, 1, 1, 2.0f); //2x Scale/White
|
Draw_ColoredStringScale (((100 - xplus)/2)+5, 415, va("%i", current_points), 1, 1, 1, 1, 2.0f); //2x Scale/White
|
||||||
#else
|
#else
|
||||||
Draw_String (vid.width/2 - (xplus*8) - 16, y + 3, va("%i", current_points));
|
Draw_String (vid.width/2 - (xplus*8) - 16, y + 3, va("%i", current_points));
|
||||||
#endif // VITA
|
#endif // VITA
|
||||||
|
@ -475,7 +475,7 @@ void HUD_Point_Change (void)
|
||||||
if (point_change[i].negative)
|
if (point_change[i].negative)
|
||||||
{
|
{
|
||||||
#ifdef VITA
|
#ifdef VITA
|
||||||
Draw_ColoredStringScale (point_change[i].x, point_change[i].y, va ("-%i", point_change[i].points), 1, 0, 0, 1, 1.5f);
|
Draw_ColoredStringScale (point_change[i].x, point_change[i].y, va ("-%i", point_change[i].points), 1, 0, 0, 1, 2);
|
||||||
#else
|
#else
|
||||||
Draw_ColoredString (point_change[i].x, point_change[i].y, va ("-%i", point_change[i].points), 1, 0, 0, 1);
|
Draw_ColoredString (point_change[i].x, point_change[i].y, va ("-%i", point_change[i].points), 1, 0, 0, 1);
|
||||||
#endif
|
#endif
|
||||||
|
@ -483,13 +483,13 @@ void HUD_Point_Change (void)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef VITA
|
#ifdef VITA
|
||||||
Draw_ColoredStringScale (point_change[i].x, point_change[i].y, va ("+%i", point_change[i].points), 1, 1, 0, 1, 1.5f);
|
Draw_ColoredStringScale (point_change[i].x, point_change[i].y, va ("+%i", point_change[i].points), 1, 1, 0, 1, 2);
|
||||||
#else
|
#else
|
||||||
Draw_ColoredString (point_change[i].x, point_change[i].y, va ("+%i", point_change[i].points), 1, 1, 0, 1);
|
Draw_ColoredString (point_change[i].x, point_change[i].y, va ("+%i", point_change[i].points), 1, 1, 0, 1);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
point_change[i].y = point_change[i].y + point_change[i].move_y;
|
point_change[i].y = point_change[i].y + point_change[i].move_y;
|
||||||
point_change[i].x = point_change[i].x - point_change[i].move_x;
|
point_change[i].x = point_change[i].x + point_change[i].move_x;
|
||||||
if (point_change[i].alive_time && point_change[i].alive_time < Sys_DoubleTime())
|
if (point_change[i].alive_time && point_change[i].alive_time < Sys_DoubleTime())
|
||||||
{
|
{
|
||||||
point_change[i].points = 0;
|
point_change[i].points = 0;
|
||||||
|
|
Loading…
Reference in a new issue