81,15 → 81,6 |
{ |
x -= velocity; |
} |
if (angle == 0 || angle == 180) |
{ |
painter->fillRect(x - 5, y - 15, 10, 30, colour); |
} |
else |
{ |
painter->fillRect(x - 15, y - 5, 30, 10, colour); |
} |
painter->drawText(x, y - 20, name); |
} |
else |
{ |
96,9 → 87,16 |
linePoints.clear(); |
} |
|
if (angle == 0 || angle == 180) |
{ |
painter->fillRect(x - 5, y - 15, 10, 30, colour); |
} |
else |
{ |
painter->fillRect(x - 15, y - 5, 30, 10, colour); |
} |
|
|
|
painter->drawText(x, y - 20, name); |
} |
} |
|
358,7 → 356,6 |
} |
else if (line == "N") |
{ |
|
if(velocity < 5) |
velocity += 0.3; |
else if(velocity > 5) |