summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-05-31 16:25:40 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-06-02 19:19:10 (GMT)
commitbc44af6a0b555f8b578024163b245318a8f02c07 (patch)
tree69eb53b8be5e00bab4249beef7e644ecffe272ac /src
parent289f4e4e4e7952b54d7c048568057f695b03e844 (diff)
downloadpowder-bc44af6a0b555f8b578024163b245318a8f02c07.zip
powder-bc44af6a0b555f8b578024163b245318a8f02c07.tar.gz
INVS should leave photons alone when under pressure
Diffstat (limited to 'src')
-rw-r--r--src/powder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/powder.c b/src/powder.c
index c7354bc..0348cf3 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -270,7 +270,7 @@ int try_move(int i, int x, int y, int nx, int ny)
if (rand() < RAND_MAX/10)
create_cherenkov_photon(i);
}
- if (parts[i].type == PT_PHOT && (r&0xFF)==PT_INVIS) {
+ if (parts[i].type == PT_PHOT && (r&0xFF)==PT_INVIS && pv[ny/CELL][nx/CELL]<=4.0f && pv[ny/CELL][nx/CELL]>=-4.0f) {
part_change_type(i,x,y,PT_NEUT);
parts[i].ctype = 0;
}