# HG changeset patch # User Jonathan@Jonathan-PC.fritz.box # Date 1302123322 -7200 # Node ID d92b58d100ae467bdcb2bf6f20f31e5457deba9d # Parent 4e2ebd8ac2987aa0f62ffa1cd82bd5d7c998c281 background stars won't go all in the same direction anymore diff -r 4e2ebd8ac298 -r d92b58d100ae QTfrontend/bgwidget.cpp --- 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; }