diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2011-05-28 20:44:07 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-05-29 12:35:00 (GMT) |
| commit | 5e414e64dcb41df0621ac35ffe53c13233469356 (patch) | |
| tree | a6015e0b495a7d061f7e7b9cbe6608935a2e3275 /src | |
| parent | a2c171fbf91e024767ecb8a800a3d7ec13e5d611 (diff) | |
| download | powder-5e414e64dcb41df0621ac35ffe53c13233469356.zip powder-5e414e64dcb41df0621ac35ffe53c13233469356.tar.gz | |
Fix WIND decoration, and reset dcolour in create_part
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 2 | ||||
| -rw-r--r-- | src/powder.c | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -989,7 +989,7 @@ int parse_save(void *save, int size, int replace, int x0, int y0, unsigned char // Replace invisible particles with something sensible and add decoration to hide it x = (int)(parts[i-1].x+0.5f); y = (int)(parts[i-1].y+0.5f); - parts[i-1].dcolour = 0x010101; + parts[i-1].dcolour = 0xFF000000; parts[i-1].type = PT_DMND; } } diff --git a/src/powder.c b/src/powder.c index fcb76b3..48265fc 100644 --- a/src/powder.c +++ b/src/powder.c @@ -709,6 +709,7 @@ inline int create_part(int p, int x, int y, int t)//the function for creating a else i = p; + parts[i].dcolour = 0; if (t==PT_GLAS) { parts[i].pavg[1] = pv[y/CELL][x/CELL]; |
