16
0
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:
jerrrrycho
2026-07-04 07:08:14 +02:00
parent 6fd1d6715b
commit 220689a5e3
121 changed files with 1380 additions and 1352 deletions

View File

@@ -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: