summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-08-03 15:57:24 +0200
committerErich Eckner <git@eckner.net>2018-08-03 15:57:24 +0200
commit229ddeb3d3a6c600606d3189bb30d0bd3edb0984 (patch)
tree61b96fb8dc0c730ad3cac1e91961e465a014ab62
parent0d494aff96abf1b78b0b15297e7a1c4dcbd3dba2 (diff)
downloadROM-229ddeb3d3a6c600606d3189bb30d0bd3edb0984.tar.xz
correct sign of sensor x-Position
-rw-r--r--romunit.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/romunit.pas b/romunit.pas
index c3d5db7..7782814 100644
--- a/romunit.pas
+++ b/romunit.pas
@@ -196,7 +196,7 @@ begin
blockread(f,fl,sizeof(single)); // x-Position
if j=0 then begin
if i=start then
- cells_left:=cells_left-fl;
+ cells_left:=cells_left+fl;
blockread(f,buff[0],sizeof(single)*steps); // fp
for k:=0 to steps-1 do begin
d1[k+length(d1)-steps]['x']:=(i-1+k/steps)*factor;