Skip to content

Commit 7a765ad

Browse files
committed
Stav momentary funkce se vzdy ulozi jako 0. #83
1 parent 119749d commit 7a765ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hv/THnaciVozidlo.pas

+1-1
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ procedure THV.SaveState(ini:TMemIniFile);
482482
str := '';
483483
for i := 0 to _HV_FUNC_MAX do
484484
begin
485-
if (Self.Stav.funkce[i]) then
485+
if ((Self.Stav.funkce[i]) and (Self.Data.funcType[i] <> THVFuncType.momentary)) then
486486
str := str + '1'
487487
else
488488
str := str + '0';

0 commit comments

Comments
 (0)