Gel won't move solids any more.
This commit is contained in:
parent
1d36ac554c
commit
68ab2e3148
@ -50,8 +50,14 @@ int update_GEL(UPDATE_FUNC_ARGS) {
|
|||||||
per *= 0.1;
|
per *= 0.1;
|
||||||
|
|
||||||
dx *= per; dy *= per;
|
dx *= per; dy *= per;
|
||||||
parts[i].vx += dx; parts[r>>8].vx -= dx;
|
parts[i].vx += dx;
|
||||||
parts[i].vy += dy; parts[r>>8].vy -= dy;
|
parts[i].vy += dy;
|
||||||
|
|
||||||
|
if ((ptypes[r&0xFF].state!=ST_SOLID && ptypes[r&0xFF].state!=ST_NONE) || (r&0xFF)==PT_GOO)
|
||||||
|
{
|
||||||
|
parts[r>>8].vx -= dx;
|
||||||
|
parts[r>>8].vy -= dy;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user