mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 11:19:51 +02:00
fixed temperature transfers, Skylark
This commit is contained in:
@@ -75,12 +75,11 @@ int try_move(int i, int x, int y, int nx, int ny)
|
||||
e = eval_move(parts[i].type, nx, ny, &r);
|
||||
if(!e) {
|
||||
if(!legacy_enable && parts[i].type==PT_PHOT) {
|
||||
if((r >> 8) < PT_NUM)
|
||||
if((r & 0xFF ) < PT_NUM)
|
||||
parts[i].temp = parts[r>>8].temp =
|
||||
restrict_flt((parts[r>>8].temp+parts[i].temp)/2, MIN_TEMP, MAX_TEMP);
|
||||
}
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
if(e == 2)
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user