diff options
| author | AntB <psychogiant@hotmail.com> | 2010-10-14 23:07:02 (GMT) |
|---|---|---|
| committer | AntB <psychogiant@hotmail.com> | 2010-10-14 23:07:02 (GMT) |
| commit | a49f81decb2d082a5fa794d4be4fd288bace247a (patch) | |
| tree | 2aa373998c2cb48890b941c6a81f6bb41768ef18 /src | |
| parent | 01dcfe5a1a95c7811b9c0871d3e8761f855e5c2d (diff) | |
| download | powder-a49f81decb2d082a5fa794d4be4fd288bace247a.zip powder-a49f81decb2d082a5fa794d4be4fd288bace247a.tar.gz | |
Photon fix >.< getting the right weight helps
Diffstat (limited to 'src')
| -rw-r--r-- | src/powder.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/powder.c b/src/powder.c index bd1779a..2cc8c3c 100644 --- a/src/powder.c +++ b/src/powder.c @@ -93,7 +93,9 @@ static int eval_move(int pt, int nx, int ny, unsigned *rr) if(ptypes[pt].falldown!=1 && bmap[ny/CELL][nx/CELL]==10) return 0; - if (r && ((r&0xFF) >= PT_NUM || !(ptypes[pt].weight = ptypes[(r&0xFF)].weight))) + if (r && ((r&0xFF) >= PT_NUM || + !(ptypes[pt].weight >= ptypes[(r&0xFF)].weight)) + ) return 0; if(pt == PT_PHOT) |
