diff options
| author | Simon <simon@hardwired.org.uk> | 2011-01-05 20:05:40 (GMT) |
|---|---|---|
| committer | Simon <simon@hardwired.org.uk> | 2011-01-05 20:05:40 (GMT) |
| commit | e2d4ae576355626ea07aa83db817bd0104dd7e6c (patch) | |
| tree | 36abd59cccd036674324f17b42c0a1d78ceef504 /src | |
| parent | 71c5d53f7f65941834d15e91e7871bff32f3c821 (diff) | |
| download | powder-e2d4ae576355626ea07aa83db817bd0104dd7e6c.zip powder-e2d4ae576355626ea07aa83db817bd0104dd7e6c.tar.gz | |
Damn it git, WHAT ARE YOU DOING?
Diffstat (limited to 'src')
| -rw-r--r-- | src/powder.c | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/src/powder.c b/src/powder.c index e30a0b4..a7f8a3e 100644 --- a/src/powder.c +++ b/src/powder.c @@ -585,22 +585,17 @@ inline int create_part(int p, int x, int y, int t) { if(((pmap[y][x]&0xFF)==PT_CLNE||(pmap[y][x]&0xFF)==PT_BCLN||(pmap[y][x]&0xFF)==PT_PCLN)&&(t!=PT_CLNE&&t!=PT_PCLN&&t!=PT_BCLN&&t!=PT_STKM&&t!=PT_STKM2)) { - if(((pmap[y][x]&0xFF)==PT_CLNE||(pmap[y][x]&0xFF)==PT_BCLN||(pmap[y][x]&0xFF)==PT_PCLN)&&(t!=PT_CLNE&&t!=PT_PCLN&&t!=PT_BCLN)) - { - parts[pmap[y][x]>>8].ctype = t; - } - return -1; + parts[pmap[y][x]>>8].ctype = t; } - if(pfree == -1) - return -1; - i = pfree; - pfree = parts[i].life; - } - else - { - i = p; + return -1; } - } + if(pfree == -1) + return -1; + i = pfree; + pfree = parts[i].life; + } + else + i = p; if(t==PT_GLAS) { @@ -696,7 +691,7 @@ inline int create_part(int p, int x, int y, int t) } if(t==PT_BIZR||t==PT_BIZRG) parts[i].ctype = 0x47FFFF; - if(t!=PT_STKM&&t!=PT_STKM2)// && t!=PT_PHOT && t!=PT_NEUT) is this needed? it breaks floodfill + if(t!=PT_STKM&&t!=PT_STKM2 && t!=PT_PHOT)// && t!=PT_NEUT) is this needed? it breaks floodfill, Yes photons should not be placed in the PMAP pmap[y][x] = t|(i<<8); else if(t==PT_STKM) { |
