Commit a2cb4761 authored by Adam P. Goucher's avatar Adam P. Goucher
Browse files

Fix problem with long-range push

parent 262ff716
......@@ -206,13 +206,17 @@ namespace apg {
for (uint64_t i = 0; i < scs2.gstream.size(); i++) {
if (scs2.gstream[i] == 12922) {
scs2.gstream[i] += (((rel - 3700) / 16) * 64);
scs2.gstream[i] += (((rel - 4000) / 16) * 64);
}
}
scs2.endblocks[0] += ((rel - 3700) / 16) * 16;
scs2.endblocks[0] += ((rel - 4000) / 16) * 16;
return scs2;
scstream scs3 = movers[1];
for (uint64_t i = 0; i < 8; i++) { scs3.concat(movers[1], 0); }
scs3.concat(scs2, 0);
return scs3;
} else if (rel < -400) {
......@@ -225,13 +229,15 @@ namespace apg {
for (uint64_t i = 0; i < scs2.gstream.size(); i++) {
if (scs2.gstream[i] == 603) {
scs2.gstream[i] += (((-rel - 180) / 16) * 64);
scs2.gstream[i] += (((-rel - 200) / 16) * 64);
}
}
scs2.endblocks[0] -= ((-rel - 180) / 16) * 16;
scs2.endblocks[0] -= ((-rel - 200) / 16) * 16;
scstream scs3 = movers[2];
scs3.concat(scs2, 0);
return scs2;
return scs3;
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment