summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorsavask <savask@yandex.ru>2011-04-30 13:41:15 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-05-05 19:24:42 (GMT)
commitf0c5960b563e4cbb3efe928df363e82a62d78e3a (patch)
treee3622245a922545343610a902ab11ae5530dbac1 /src/main.c
parent3ea306cc771bbaefa01058c810fc1dd041a17641 (diff)
downloadpowder-f0c5960b563e4cbb3efe928df363e82a62d78e3a.zip
powder-f0c5960b563e4cbb3efe928df363e82a62d78e3a.tar.gz
Some work on bubbles. Added "bubble x,y" command to console.
Also made them save like regular soap.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 92a9fdd..e2bf9d0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -667,6 +667,8 @@ int parse_save(void *save, int size, int replace, int x0, int y0, unsigned char
parts[k].type = j;
if (j == PT_PHOT)
parts[k].ctype = 0x3fffffff;
+ if (j == PT_SOAP)
+ parts[k].ctype = 0;
parts[k].x = (float)x;
parts[k].y = (float)y;
m[(x-x0)+(y-y0)*w] = k+1;
@@ -681,6 +683,8 @@ int parse_save(void *save, int size, int replace, int x0, int y0, unsigned char
parts[fp[i]].tmp = 50;
if (j == PT_PHOT)
parts[fp[i]].ctype = 0x3fffffff;
+ if (j == PT_SOAP)
+ parts[k].ctype = 0;
parts[fp[i]].x = (float)x;
parts[fp[i]].y = (float)y;
m[(x-x0)+(y-y0)*w] = fp[i]+1;