Commit MetaInfo

修订版97b0ea57ec5fc2f75adf252ace5bd8024ebabb0f (tree)
时间2015-03-09 01:24:32
作者Face
CommiterFace

Log Message

xves: fixed bugs in dictionary handling

更改概述

差异

diff -r 35c2d4b8c90b -r 97b0ea57ec5f Orbitersdk/samples/xves/os_gen.pas
--- a/Orbitersdk/samples/xves/os_gen.pas Sun Mar 08 16:27:00 2015 +0100
+++ b/Orbitersdk/samples/xves/os_gen.pas Sun Mar 08 17:24:32 2015 +0100
@@ -364,7 +364,7 @@
364364 main_dat.arm[c].id[length(id)]:=#0;
365365 for i:=0 to main_cfg.armcnt-1 do begin
366366 for j:=0 to 254 do begin
367- if (main_dat.arm[c].id[j]=#0) and (main_dat.arm[i].id[j]=#0) then exit;
367+ if (main_dat.arm[c].id[j]=#0) and (main_dat.arm[i].id[j]=#0) then halt(-1);
368368 if main_dat.arm[i].id[j]<>main_dat.arm[c].id[j] then break;
369369 end;
370370 end;
diff -r 35c2d4b8c90b -r 97b0ea57ec5f Orbitersdk/samples/xves/os_sc3_reader.pas
--- a/Orbitersdk/samples/xves/os_sc3_reader.pas Sun Mar 08 16:27:00 2015 +0100
+++ b/Orbitersdk/samples/xves/os_sc3_reader.pas Sun Mar 08 17:24:32 2015 +0100
@@ -462,12 +462,11 @@
462462 for i:=0 to main_cfg.armcnt-1 do begin
463463 for j:=0 to 254 do begin
464464 if j>=length(s) then begin
465- if main_dat.arm[i].id[j]=#0 then result:=i;
465+ if main_dat.arm[i].id[j]=#0 then exit(i);
466466 break;
467467 end;
468468 if s[j+1]<>main_dat.arm[i].id[j] then break;
469469 end;
470- if result>=0 then break;
471470 end;
472471 end;
473472 //############################################################################//
@@ -477,10 +476,10 @@
477476 begin
478477 if copy(par,1,4)='tip_' then begin
479478 s:=copy(par,5,length(par));
480- i:=getfsymp(s,'_');
481- if i<>0 then begin
482- i:=vali(copy(s,i+1,1));
483- s:=copy(par,5,i-1);
479+ a:=getfsymp(s,'_');
480+ if a<>0 then begin
481+ i:=vali(copy(s,a+1,1));
482+ s:=copy(par,5,a-1);
484483 end else begin
485484 i:=vali(s);
486485 s:='';
Show on old repository browser