81,6 → 81,15 |
{ |
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 |
{ |
87,16 → 96,9 |
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); |
|
|
} |
} |
|
356,6 → 358,7 |
} |
else if (line == "N") |
{ |
|
if(velocity < 5) |
velocity += 0.3; |
else if(velocity > 5) |