diff options
| author | savask <savask@yandex.ru> | 2011-04-30 13:41:15 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-05-05 19:24:42 (GMT) |
| commit | f0c5960b563e4cbb3efe928df363e82a62d78e3a (patch) | |
| tree | e3622245a922545343610a902ab11ae5530dbac1 /src/main.c | |
| parent | 3ea306cc771bbaefa01058c810fc1dd041a17641 (diff) | |
| download | powder-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |
