Fix STKM_init_legs and leg/head colours in prerender_save
This commit is contained in:
parent
27a95c7684
commit
20aba663cd
@ -415,23 +415,23 @@ void STKM_init_legs(float* playerp, int i)
|
||||
x = (int)(parts[i].x+0.5f);
|
||||
y = (int)(parts[i].y+0.5f);
|
||||
|
||||
player[3] = x-1;
|
||||
player[4] = y+6;
|
||||
player[5] = x-1;
|
||||
player[6] = y+6;
|
||||
playerp[3] = x-1;
|
||||
playerp[4] = y+6;
|
||||
playerp[5] = x-1;
|
||||
playerp[6] = y+6;
|
||||
|
||||
player[7] = x-3;
|
||||
player[8] = y+12;
|
||||
player[9] = x-3;
|
||||
player[10] = y+12;
|
||||
playerp[7] = x-3;
|
||||
playerp[8] = y+12;
|
||||
playerp[9] = x-3;
|
||||
playerp[10] = y+12;
|
||||
|
||||
player[11] = x+1;
|
||||
player[12] = y+6;
|
||||
player[13] = x+1;
|
||||
player[14] = y+6;
|
||||
playerp[11] = x+1;
|
||||
playerp[12] = y+6;
|
||||
playerp[13] = x+1;
|
||||
playerp[14] = y+6;
|
||||
|
||||
player[15] = x+3;
|
||||
player[16] = y+12;
|
||||
player[17] = x+3;
|
||||
player[18] = y+12;
|
||||
playerp[15] = x+3;
|
||||
playerp[16] = y+12;
|
||||
playerp[17] = x+3;
|
||||
playerp[18] = y+12;
|
||||
}
|
||||
|
@ -4453,22 +4453,22 @@ pixel *prerender_save(void *save, int size, int *width, int *height)
|
||||
if (j==PT_STKM) lc = PIXRGB(255, 255, 255);
|
||||
else lc = PIXRGB(100, 100, 255);
|
||||
//only need to check upper bound of y coord - lower bounds and x<w are checked in draw_line
|
||||
draw_line(fb , x-2, y-2, x+2, y-2, PIXR(lc), PIXG(lc), PIXB(lc), w);
|
||||
draw_line(fb , x-2, y-2, x+2, y-2, PIXR(hc), PIXG(hc), PIXB(hc), w);
|
||||
if (y+2<h)
|
||||
{
|
||||
draw_line(fb , x-2, y+2, x+2, y+2, PIXR(lc), PIXG(lc), PIXB(lc), w);
|
||||
draw_line(fb , x-2, y-2, x-2, y+2, PIXR(lc), PIXG(lc), PIXB(lc), w);
|
||||
draw_line(fb , x+2, y-2, x+2, y+2, PIXR(lc), PIXG(lc), PIXB(lc), w);
|
||||
draw_line(fb , x-2, y+2, x+2, y+2, PIXR(hc), PIXG(hc), PIXB(hc), w);
|
||||
draw_line(fb , x-2, y-2, x-2, y+2, PIXR(hc), PIXG(hc), PIXB(hc), w);
|
||||
draw_line(fb , x+2, y-2, x+2, y+2, PIXR(hc), PIXG(hc), PIXB(hc), w);
|
||||
}
|
||||
if (y+6<h)
|
||||
{
|
||||
draw_line(fb , x, y+3, x-1, y+6, PIXR(hc), PIXG(hc), PIXB(hc), w);
|
||||
draw_line(fb , x, y+3, x+1, y+6, PIXR(hc), PIXG(hc), PIXB(hc), w);
|
||||
draw_line(fb , x, y+3, x-1, y+6, PIXR(lc), PIXG(lc), PIXB(lc), w);
|
||||
draw_line(fb , x, y+3, x+1, y+6, PIXR(lc), PIXG(lc), PIXB(lc), w);
|
||||
}
|
||||
if (y+12<h)
|
||||
{
|
||||
draw_line(fb , x-1, y+6, x-3, y+12, PIXR(hc), PIXG(hc), PIXB(hc), w);
|
||||
draw_line(fb , x+1, y+6, x+3, y+12, PIXR(hc), PIXG(hc), PIXB(hc), w);
|
||||
draw_line(fb , x-1, y+6, x-3, y+12, PIXR(lc), PIXG(lc), PIXB(lc), w);
|
||||
draw_line(fb , x+1, y+6, x+3, y+12, PIXR(lc), PIXG(lc), PIXB(lc), w);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user