From 034cd4ed62d15ab8eedfb702ea6adcca04f51983 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Wed, 19 Oct 2011 02:04:31 +0800 Subject: [PATCH] FILT subtracts photon colours when tmp=3 --- src/powder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/powder.c b/src/powder.c index 1851f45a7..bb91cd342 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) {