mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-02 14:37:32 +02:00
A small fix for convection.
This commit is contained in:
@@ -1846,7 +1846,7 @@ void update_particles_i(pixel *vid, int start, int inc)
|
|||||||
|
|
||||||
if (!legacy_enable)
|
if (!legacy_enable)
|
||||||
{
|
{
|
||||||
if (y-2 >= 0 && y-2 < YRES && (ptypes[t].properties&TYPE_LIQUID) && gel_scale>(rand()%250)) {//some heat convection for liquids
|
if (y-2 >= 0 && y-2 < YRES && (ptypes[t].properties&TYPE_LIQUID) && (t!=PT_GEL || gel_scale>(1+rand()%255))) {//some heat convection for liquids
|
||||||
r = pmap[y-2][x];
|
r = pmap[y-2][x];
|
||||||
if (!(!r || parts[i].type != (r&0xFF))) {
|
if (!(!r || parts[i].type != (r&0xFF))) {
|
||||||
if (parts[i].temp>parts[r>>8].temp) {
|
if (parts[i].temp>parts[r>>8].temp) {
|
||||||
|
Reference in New Issue
Block a user