From dc01f09f0e9785b576ba67f1c0b9e6fd5cd86eda Mon Sep 17 00:00:00 2001 From: Savely Skresanov Date: Thu, 12 Jul 2012 22:08:55 +0700 Subject: [PATCH] Now stickmen can shoot plasma. --- src/elements/stkm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/elements/stkm.c b/src/elements/stkm.c index 9271c5447..bbb266de9 100644 --- a/src/elements/stkm.c +++ b/src/elements/stkm.c @@ -229,7 +229,10 @@ int run_stickman(playerst* playerp, UPDATE_FUNC_ARGS) { if (!r && !bmap[(y+ry)/CELL][(x+rx)/CELL]) continue; - if (ptypes[r&0xFF].falldown!=0 || ptypes[r&0xFF].state == ST_GAS || (r&0xFF) == PT_NEUT || (r&0xFF) == PT_PHOT) + if (ptypes[r&0xFF].falldown!=0 || ptypes[r&0xFF].state == ST_GAS + || ptypes[r&0xFF].properties&TYPE_GAS + || ptypes[r&0xFF].properties&TYPE_LIQUID + || (r&0xFF) == PT_NEUT || (r&0xFF) == PT_PHOT) { playerp->elem = r&0xFF; //Current element }