Fixes for high life stickman
This commit is contained in:
parent
9b83bf27a8
commit
04b3eb11fd
@ -211,7 +211,8 @@ int update_STKM(UPDATE_FUNC_ARGS) {
|
||||
|
||||
if ((r&0xFF) == PT_NEUT)
|
||||
{
|
||||
parts[i].life -= (102-parts[i].life)/2;
|
||||
if (parts[i].life<=100) parts[i].life -= (102-parts[i].life)/2;
|
||||
else parts[i].life *= 0.9f;
|
||||
kill_part(r>>8);
|
||||
}
|
||||
if (bmap[(ry+y)/CELL][(rx+x)/CELL]==WL_FAN)
|
||||
|
@ -211,7 +211,8 @@ int update_STKM2(UPDATE_FUNC_ARGS) {
|
||||
|
||||
if ((r&0xFF) == PT_NEUT)
|
||||
{
|
||||
parts[i].life -= (102-parts[i].life)/2;
|
||||
if (parts[i].life<=100) parts[i].life -= (102-parts[i].life)/2;
|
||||
else parts[i].life *= 0.9f;
|
||||
kill_part(r>>8);
|
||||
}
|
||||
if (bmap[(ry+y)/CELL][(rx+x)/CELL]==WL_FAN)
|
||||
|
@ -1698,7 +1698,7 @@ void draw_parts(pixel *vid)
|
||||
{
|
||||
if (t==PT_STKM) //Just draw head here
|
||||
{
|
||||
char buff[10]; //Buffer for HP
|
||||
char buff[20]; //Buffer for HP
|
||||
pixel pc;
|
||||
|
||||
if (mousex>(nx-3) && mousex<(nx+3) && mousey<(ny+3) && mousey>(ny-3)) //If mous is in the head
|
||||
@ -1726,7 +1726,7 @@ void draw_parts(pixel *vid)
|
||||
}
|
||||
else if (t==PT_STKM2) //Just draw head here
|
||||
{
|
||||
char buff[10]; //Buffer for HP
|
||||
char buff[20]; //Buffer for HP
|
||||
pixel pc;
|
||||
|
||||
if (mousex>(nx-3) && mousex<(nx+3) && mousey<(ny+3) && mousey>(ny-3)) //If mous is in the head
|
||||
|
Reference in New Issue
Block a user