From 20dd54f36e971e9b9f8762309caa49ed07bea031 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Sat, 10 Dec 2011 16:29:23 +0800 Subject: [PATCH] Set BIZR/G/S ctype when loading a save, set BIZS ctype in create_part --- src/main.c | 43 ++++++++++++++++++++----------------------- src/powder.c | 2 +- 2 files changed, 21 insertions(+), 24 deletions(-) diff --git a/src/main.c b/src/main.c index eee04cc0f..ef150acb3 100644 --- a/src/main.c +++ b/src/main.c @@ -724,35 +724,32 @@ int parse_save(void *save, int size, int replace, int x0, int y0, unsigned char if (pmap[y][x]) { k = pmap[y][x]>>8; - memset(parts+k, 0, sizeof(particle)); - 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; } - else if (i < nf) + else if (i