supposed fix for photon heat

This commit is contained in:
Felix Wallin 2010-10-02 19:47:43 +02:00
parent b7f8fd4ba6
commit b501e45705

View File

@ -73,7 +73,7 @@ int try_move(int i, int x, int y, int nx, int ny)
if(!e) {
if(!legacy_enable) {
if((r >> 8) < PT_NUM)
| parts[r>>8].temp = restrict_flt(parts[r>>8].temp+parts[i].temp/2, MIN_TEMP, MAX_TEMP);;
parts[i].temp = parts[r>>8].temp = restrict_flt(parts[r>>8].temp+parts[i].temp/2, MIN_TEMP, MAX_TEMP);
}
return 0;
}