mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 17:29:18 +02:00
reformat: parameters can be made const
This commit is contained in:
@@ -173,7 +173,7 @@ class TSpeedPos
|
||||
bool Update();
|
||||
// aktualizuje odległość we wpisie
|
||||
void
|
||||
UpdateDistance( double dist ) {
|
||||
UpdateDistance(const double dist ) {
|
||||
fDist -= dist; }
|
||||
bool Set(basic_event *e, double d, double length, TOrders order = Wait_for_orders);
|
||||
void Set(TTrack *t, double d, int f);
|
||||
@@ -483,7 +483,7 @@ private:
|
||||
// methods
|
||||
public:
|
||||
int CrossRoute( TTrack *tr );
|
||||
void MoveDistanceAdd( double distance ) {
|
||||
void MoveDistanceAdd(const double distance ) {
|
||||
dMoveLen += distance * iDirection;
|
||||
} //jak jedzie do tyłu to trzeba uwzględniać, że distance jest ujemna
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user