summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2011-03-01 18:33:10 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-03-02 20:05:51 (GMT)
commit20edfacae5735e654b8dfa85e54768d7551a9382 (patch)
treef724bddd9e9983beea40388315c7b9cd110b3fbc /src
parent4f4796b469ae2dc4ba3f131d940971f24a997df5 (diff)
downloadpowder-20edfacae5735e654b8dfa85e54768d7551a9382.zip
powder-20edfacae5735e654b8dfa85e54768d7551a9382.tar.gz
fix "water spark bounce"
Diffstat (limited to 'src')
-rw-r--r--src/powder.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c
index 1a41407..e93f88d 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -79,6 +79,9 @@ int eval_move(int pt, int nx, int ny, unsigned *rr)
if ((r&0xFF)==PT_VOID || (r&0xFF)==PT_BHOL)
return 1;
+ if(pt==PT_SPRK)//spark shouldn't move
+ return 0;
+
if (pt==PT_PHOT&&(
(r&0xFF)==PT_GLAS || (r&0xFF)==PT_PHOT ||
(r&0xFF)==PT_CLNE || (r&0xFF)==PT_PCLN ||