summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/powder.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/powder.c b/src/powder.c
index e14ff59..df99f13 100644
--- a/src/powder.c
+++ b/src/powder.c
@@ -433,7 +433,13 @@ inline int create_n_parts(int n, int x, int y, float vx, float vy, int t)
#endif
{
int i, c;
-
+ n = (n/10);
+ if(n<1){
+ n = 1;
+ }
+ if(n>680){
+ n = 680;
+ }
if(x<0 || y<0 || x>=XRES || y>=YRES)
return -1;