summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-10-18 18:04:31 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-19 09:47:40 (GMT)
commit034cd4ed62d15ab8eedfb702ea6adcca04f51983 (patch)
tree0615e1c9c64b709f34f9a6a4a1f1eb3fd89e6b92
parent9fed467a28003c2e0a6055bc9db29d26d06fb5b3 (diff)
downloadpowder-034cd4ed62d15ab8eedfb702ea6adcca04f51983.zip
powder-034cd4ed62d15ab8eedfb702ea6adcca04f51983.tar.gz
FILT subtracts photon colours when tmp=3
-rw-r--r--src/powder.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c
index 1851f45..bb91cd3 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -277,6 +277,8 @@ int try_move(int i, int x, int y, int nx, int ny)
parts[i].ctype &= 0x1F << temp_bin; //Filter Colour
} else if(parts[r>>8].tmp==2){
parts[i].ctype |= 0x1F << temp_bin; //Add Colour
+ } else if(parts[r>>8].tmp==3){
+ parts[i].ctype &= ~(0x1F << temp_bin); //Subtract Colour
}
}
if (parts[i].type == PT_NEUT && (r&0xFF)==PT_GLAS) {