summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/powder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/powder.c b/src/powder.c
index 986a678..78562b8 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -523,7 +523,7 @@ inline int create_part(int p, int x, int y, int t)
{
int i;
- if (x<0 || y<0 || x>=XRES || y>=YRES || t<0 || t>=PT_NUM)
+ if (x<0 || y<0 || x>=XRES || y>=YRES || ((t<0 || t>=PT_NUM)&&t!=SPC_HEAT&&t!=SPC_COOL&&t!=SPC_AIR&&t!=SPC_VACUUM))
return -1;
if (t==SPC_HEAT||t==SPC_COOL)