TPT: Gel won't move solids any more 68ab2e3148
This commit is contained in:
parent
96ec616442
commit
14cb5cf765
@ -98,8 +98,13 @@ int Element_GEL::update(UPDATE_FUNC_ARGS)
|
||||
per *= 0.1;
|
||||
|
||||
dx *= per; dy *= per;
|
||||
parts[i].vx += dx; parts[r>>8].vx -= dx;
|
||||
parts[i].vy += dy; parts[r>>8].vy -= dy;
|
||||
parts[i].vx += dx;
|
||||
parts[i].vy += dy;
|
||||
if ((sim->elements[r&0xFF].State!=ST_SOLID && sim->elements[r&0xFF].State!=ST_NONE) || (r&0xFF)==PT_GOO)
|
||||
{
|
||||
parts[r>>8].vx -= dx;
|
||||
parts[r>>8].vy -= dy;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
@ -120,4 +125,4 @@ int Element_GEL::graphics(GRAPHICS_FUNC_ARGS)
|
||||
|
||||
|
||||
|
||||
Element_GEL::~Element_GEL() {}
|
||||
Element_GEL::~Element_GEL() {}
|
||||
|
Reference in New Issue
Block a user