summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAntB <psychogiant@hotmail.com>2010-10-14 01:42:37 (GMT)
committer AntB <psychogiant@hotmail.com>2010-10-14 01:42:37 (GMT)
commit01dcfe5a1a95c7811b9c0871d3e8761f855e5c2d (patch)
tree15e72dce97c007539a323b3b141b6cada9d0bb11 /src
parent53ed480afc337abe0182d4869f7de96d649fac1a (diff)
downloadpowder-01dcfe5a1a95c7811b9c0871d3e8761f855e5c2d.zip
powder-01dcfe5a1a95c7811b9c0871d3e8761f855e5c2d.tar.gz
As good as its gettin for now
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 4e0b9f8..bd1779a 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -93,7 +93,7 @@ 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[pt>>8].weight)))
+ if (r && ((r&0xFF) >= PT_NUM || !(ptypes[pt].weight = ptypes[(r&0xFF)].weight)))
return 0;
if(pt == PT_PHOT)