dev167 - fix TL macro
previously, 127 mapped to TL 0 but now 127 maps to TL 127 yeah, the graph will look inverted I know...
This commit is contained in:
parent
b35235b82e
commit
54934dcfc9
16 changed files with 32 additions and 16 deletions
|
|
@ -2261,6 +2261,13 @@ void DivInstrument::readFeatureOx(SafeReader& reader, int op, short version) {
|
|||
}
|
||||
break;
|
||||
}
|
||||
|
||||
// <167 TL macro compat
|
||||
if (macroCode==6 && version<167) {
|
||||
for (int i=0; i<target->len; i++) {
|
||||
target->val[i]^=0x7f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
READ_FEAT_END;
|
||||
|
|
@ -3319,6 +3326,15 @@ DivDataErrors DivInstrument::readInsDataOld(SafeReader &reader, short version) {
|
|||
}
|
||||
}
|
||||
|
||||
// <167 TL macro compat
|
||||
if (version<167) {
|
||||
for (int i=0; i<4; i++) {
|
||||
for (int j=0; j<std.opMacros[i].tlMacro.len; j++) {
|
||||
std.opMacros[i].tlMacro.val[j]^=0x7f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return DIV_DATA_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue