Subversion Repositories QTron

Compare Revisions

Regard whitespace Rev 16 → Rev 17

/bike.cpp
163,10 → 163,10
}
 
int sign(float x){
if(x > 0){
if(x > 0.0){
return 1;
}
if(x < 0){
if(x < 0.0){
return -1;
}
return 0;
181,11 → 181,12
return true;
if(linePoints[i].x() < 0 || linePoints[i].x() > 800 || linePoints[i].y() < 0 || linePoints[i].y() > 600)
return true;
int j;
int j, r;
Bike *bike;
foreach(bike,bikes)
for(int r = 0; r < bikes.count(); r++)
{
for(j = 0; j < bike->linePoints.count() - 2; j++)
bike = bikes[r];
for(j = 0; j < bike->linePoints.count() - 1; j++)
{
if(!(bike->linePoints[j].x() == bike->linePoints[j+1].x() && linePoints[i].x() == linePoints[i-1].x()) && !(bike->linePoints[j].y() == bike->linePoints[j+1].y() && linePoints[i].y() == linePoints[i-1].y()))
{