summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-12-30 21:42:50 (GMT)
committer Simon <simon@hardwired.org.uk>2010-12-30 21:42:50 (GMT)
commit265b3600789efc8f292d16d2aea666edaac6eeb0 (patch)
treed5a5355392b4457b92383f868d15f328cd31a292 /src
parente561aeb3212c32f628a3526e62a846953a4ee8e7 (diff)
downloadpowder-265b3600789efc8f292d16d2aea666edaac6eeb0.zip
powder-265b3600789efc8f292d16d2aea666edaac6eeb0.tar.gz
Less laggy SDEUT
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;