mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-31 05:20:51 +00:00
Fix alignment of rocket sneaker bar.
This commit is contained in:
parent
746c48af60
commit
8c5d4dd270
1 changed files with 5 additions and 5 deletions
10
src/k_kart.c
10
src/k_kart.c
|
@ -5056,7 +5056,7 @@ static void K_drawKartItem(void)
|
||||||
V_DrawScaledPatch(ITEM_X, ITEM_Y, V_HUDTRANS|splitflags, localpatch);
|
V_DrawScaledPatch(ITEM_X, ITEM_Y, V_HUDTRANS|splitflags, localpatch);
|
||||||
|
|
||||||
// Extensible meter, currently only used for rocket sneaker...
|
// Extensible meter, currently only used for rocket sneaker...
|
||||||
if (itembar)
|
if (itembar && hudtrans)
|
||||||
{
|
{
|
||||||
const INT32 barlength = (splitscreen > 1 ? 12 : 24);
|
const INT32 barlength = (splitscreen > 1 ? 12 : 24);
|
||||||
const INT32 max = itemtime; // timer's normal highest value
|
const INT32 max = itemtime; // timer's normal highest value
|
||||||
|
@ -5066,14 +5066,14 @@ static void K_drawKartItem(void)
|
||||||
|
|
||||||
V_DrawScaledPatch(ITEM_X+x, ITEM_Y+y, V_HUDTRANS|splitflags, kp_itemtimer[offset]);
|
V_DrawScaledPatch(ITEM_X+x, ITEM_Y+y, V_HUDTRANS|splitflags, kp_itemtimer[offset]);
|
||||||
// The left dark "AA" edge
|
// The left dark "AA" edge
|
||||||
V_DrawFill(ITEM_X+x+1, ITEM_Y+y+1, (length == 2 ? 2 : 1), height, 12);
|
V_DrawFill(ITEM_X+x+1, ITEM_Y+y+1, (length == 2 ? 2 : 1), height, 12|splitflags);
|
||||||
// The bar itself
|
// The bar itself
|
||||||
if (length > 2)
|
if (length > 2)
|
||||||
{
|
{
|
||||||
V_DrawFill(ITEM_X+x+length, ITEM_Y+y+1, 1, height, 12); // the right one
|
V_DrawFill(ITEM_X+x+length, ITEM_Y+y+1, 1, height, 12|splitflags); // the right one
|
||||||
if (height == 2)
|
if (height == 2)
|
||||||
V_DrawFill(ITEM_X+x+2, ITEM_Y+y+2, length-2, 1, 8); // the dulled underside
|
V_DrawFill(ITEM_X+x+2, ITEM_Y+y+2, length-2, 1, 8|splitflags); // the dulled underside
|
||||||
V_DrawFill(ITEM_X+x+2, ITEM_Y+y+1, length-2, 1, 120); // the shine
|
V_DrawFill(ITEM_X+x+2, ITEM_Y+y+1, length-2, 1, 120|splitflags); // the shine
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue