summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2011-03-01 18:33:10 (GMT)
committer Cracker64 <cracker642@gmail.com>2011-03-01 18:33:10 (GMT)
commit13e90886c1d4ae571707c8f31a7702fce7b2ec74 (patch)
tree8c5e9ecd1c2795661748a520299c0f4b6f75b27f /src
parent30ceffa46dfae19c2422077faf4be27f6c3ab2a0 (diff)
downloadpowder-13e90886c1d4ae571707c8f31a7702fce7b2ec74.zip
powder-13e90886c1d4ae571707c8f31a7702fce7b2ec74.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 dcdda77..af91808 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 ||