diff --git a/src/hv/THnaciVozidlo.pas b/src/hv/THnaciVozidlo.pas index aead4b4c..656d4a99 100644 --- a/src/hv/THnaciVozidlo.pas +++ b/src/hv/THnaciVozidlo.pas @@ -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));