DLAY temp fix

This commit is contained in:
tridiaq 2011-07-27 00:48:03 +08:00 committed by Simon Robertshaw
parent 899969cc8a
commit 108e5643d7

View File

@ -984,6 +984,8 @@ inline int create_part(int p, int x, int y, int tv)//the function for creating a
} }
if (t==PT_BIZR||t==PT_BIZRG) if (t==PT_BIZR||t==PT_BIZRG)
parts[i].ctype = 0x47FFFF; parts[i].ctype = 0x47FFFF;
if (t==PT_DLAY)
parts[i].tmp2 = *((int*)(&parts[i].temp));
//and finally set the pmap/photon maps to the newly created particle //and finally set the pmap/photon maps to the newly created particle
if (t==PT_PHOT||t==PT_NEUT) if (t==PT_PHOT||t==PT_NEUT)
photons[y][x] = t|(i<<8); photons[y][x] = t|(i<<8);