From 034cd4ed62d15ab8eedfb702ea6adcca04f51983 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Wed, 19 Oct 2011 02:04:31 +0800 Subject: FILT subtracts photon colours when tmp=3 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) { -- cgit v0.9.2-21-gd62e