author | Jonathan@Jonathan-PC.fritz.box |
Wed, 06 Apr 2011 22:55:22 +0200 | |
changeset 5113 | d92b58d100ae |
parent 5112 | 4e2ebd8ac298 |
child 5114 | a05081bc2769 |
--- a/QTfrontend/bgwidget.cpp Wed Apr 06 11:51:23 2011 +0200 +++ b/QTfrontend/bgwidget.cpp Wed Apr 06 22:55:22 2011 +0200 @@ -44,7 +44,7 @@ fY = -1 * iSpriteHeight; fX = (qrand() % ((int)(wParent->width() * 1.5))) - wParent->width()/2; fYMov = ((qrand() % 400)+300) / 100.0f; - fXMov = fYMov * 0.5f; + fXMov = fYMov * 0.2f+((qrand()%100)/100.0f * 0.6f); //so between 0.2 and 0.6, or 0.5 +/- 0.3 iAngle = qrand() % 360; }