summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex <zc00gii@gmail.com>2010-08-16 22:39:35 (GMT)
committer FacialTurd <simon@hardwired.org.uk>2010-08-17 11:00:11 (GMT)
commit59fccc35fd3b6bd607db676d5f1e3855b220c292 (patch)
tree698f111081d6d070d7d7325cf232a1ca4b3addab
parentd6c0211c54a004fe6e61810a799562f15efc84c8 (diff)
downloadpowder-59fccc35fd3b6bd607db676d5f1e3855b220c292.zip
powder-59fccc35fd3b6bd607db676d5f1e3855b220c292.tar.gz
fix mwax bug
-rw-r--r--powder.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/powder.c b/powder.c
index a46bb59..c9360e4 100644
--- a/powder.c
+++ b/powder.c
@@ -773,7 +773,7 @@ static const unsigned char can_move[PT_NUM][PT_NUM] =
/* PHOT */ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
/* URAN */ {0,1,1,1,0,0,1,1,1,0,1,0,0,0,0,0,1,0,0,0,0,1,0,1,0,1,1,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0},
/* WAX */ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
- /* MWAX */ {0,1,0,1,1,0,0,1,1,0,1,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
+ /* MWAX */ {0,1,0,1,1,0,0,1,1,0,1,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
/* PSCN */ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
/* NSCN */ {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
/* LNTG */ {0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
@@ -3088,8 +3088,20 @@ justdraw:
}
}
- }
- else if(t==PT_DSTW)
+ } else if(t==PT_MWAX)
+ {
+ for(x=-1; x<=1; x++)
+ {
+ for(y=-1; y<=1; y++)
+ {
+ if ((abs(x) == 0) && (abs(y) == 0))
+ blendpixel(vid,x+nx,y+ny,0xE0,0xE0,0xAA,100);
+ else if (abs(y) != 0 || abs(x) != 0)
+ blendpixel(vid,x+nx,y+ny,0xE0,0xE0,0xAA,50);
+ }
+ }
+
+ } else if(t==PT_DSTW)
{
for(x=-1; x<=1; x++)
{