Skip to content

Commit

Permalink
Save train elapsed distance as .2f.
Browse files Browse the repository at this point in the history
  • Loading branch information
horacekj committed Jan 21, 2023
1 parent 61cbfdb commit e5be12e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hv/THnaciVozidlo.pas
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,8 @@ procedure THV.SaveState(ini: TMemIniFile);
else
ini.WriteString(addr, 'stanice', '');

ini.WriteFloat(addr, 'najeto_vpred_metru', Self.state.traveled_forward);
ini.WriteFloat(addr, 'najeto_vzad_metru', Self.state.traveled_backward);
ini.WriteString(addr, 'najeto_vpred_metru', Format('%.2f', [Self.state.traveled_forward]));
ini.WriteString(addr, 'najeto_vzad_metru', Format('%.2f', [Self.state.traveled_backward]));

ini.WriteInteger(addr, 'stanoviste_a', Integer(Self.state.siteA));

Expand Down

0 comments on commit e5be12e

Please sign in to comment.