Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/main.c b/src/main.c
- index b5c93f6..f18aff5 100644
- --- a/src/main.c
- +++ b/src/main.c
- @@ -486,7 +466,7 @@ void *build_save(int *size, int x0, int y0, int w, int h, unsigned char bmap[YRE
- for (j=0; j<w*h; j++)
- {
- i = m[j];
- - if (i && (parts[i-1].type==PT_CLNE || parts[i-1].type==PT_PCLN || parts[i-1].type==PT_BCLN || parts[i-1].type==PT_SPRK || parts[i-1].type==PT_LAVA || parts[i-1].type==PT_PIPE || parts[i-1].type==PT_LIFE))
- + if (i && (parts[i-1].type==PT_CLNE || parts[i-1].type==PT_PCLN || parts[i-1].type==PT_BCLN || parts[i-1].type==PT_SPRK || parts[i-1].type==PT_LAVA || parts[i-1].type==PT_PIPE || parts[i-1].type==PT_LIFE || parts[i-1].type==PT_PBCN))
- d[p++] = parts[i-1].ctype;
- }
- @@ -728,23 +697,22 @@ int parse_save(void *save, int size, int replace, int x0, int y0, unsigned char
- if (j == PT_PHOT)
- parts[k].ctype = 0x3fffffff;
- if (j == PT_SOAP)
- - parts[fp[i]].ctype = 0;
- + parts[k].ctype = 0;
- parts[k].x = (float)x;
- parts[k].y = (float)y;
- m[(x-x0)+(y-y0)*w] = k+1;
- @@ -760,7 +728,7 @@ int parse_save(void *save, int size, int replace, int x0, int y0, unsigned char
- if (j == PT_PHOT)
- parts[fp[i]].ctype = 0x3fffffff;
- if (j == PT_SOAP)
- - parts[k].ctype = 0;
- + parts[fp[i]].ctype = 0;
- parts[fp[i]].x = (float)x;
- parts[fp[i]].y = (float)y;
- m[(x-x0)+(y-y0)*w] = fp[i]+1;
- @@ -774,9 +742,8 @@ int parse_save(void *save, int size, int replace, int x0, int y0, unsigned char
- // load particle properties
- for (j=0; j<w*h; j++)
- {
- i = m[j];
- - if (i && (ty==PT_CLNE || (ty==PT_PCLN && ver>=43) || (ty==PT_BCLN && ver>=44) || (ty==PT_SPRK && ver>=21) || (ty==PT_LAVA && ver>=34) || (ty==PT_PIPE && ver>=43) || (ty==PT_LIFE && ver>=51)))
- + if (i)
- {
- i--;
- if (p+1 >= size)
- @@ -1054,7 +978,7 @@ int parse_save(void *save, int size, int replace, int x0, int y0, unsigned char
- int gnum = 0;
- i = m[j];
- ty = d[pty+j];
- - if (i && (ty==PT_CLNE || (ty==PT_PCLN && ver>=43) || (ty==PT_BCLN && ver>=44) || (ty==PT_SPRK && ver>=21) || (ty==PT_LAVA && ver>=34) || (ty==PT_PIPE && ver>=43)))
- + if (i && (ty==PT_CLNE || (ty==PT_PCLN && ver>=43) || (ty==PT_BCLN && ver>=44) || (ty==PT_SPRK && ver>=21) || (ty==PT_LAVA && ver>=34) || (ty==PT_PIPE && ver>=43) || (ty==PT_LIFE && ver>=51) || (ty==PT_PBCN && ver>=52)))
- {
- if (p >= size)
- goto corrupt;
- @@ -1097,7 +1019,7 @@ int parse_save(void *save, int size, int replace, int x0, int y0, unsigned char
- stop_grav_async();
- }
- - //gravity_mask();
- + gravity_mask();
- if (p >= size)
- goto version1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement