1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

fixup: debug removed

This commit is contained in:
Zeno Rogue 2020-04-15 01:43:14 +02:00
parent 7e58a718e2
commit bcbdc8c838

12
rug.cpp
View File

@ -622,23 +622,14 @@ bool force(rugpoint& m1, rugpoint& m2, double rd, bool is_anticusp=false, double
transmatrix iT1 = inverse(T1); transmatrix iT1 = inverse(T1);
println(hlog, sqhypot_d(4, iT1 * C0 - m1.native));
println(hlog, sqhypot_d(4, iT1 * xpush0(t) - m1.native));
for(int i=0; i<MDIM; i++) if(std::isnan(m1.native[i])) { for(int i=0; i<MDIM; i++) if(std::isnan(m1.native[i])) {
addMessage("Failed!"); addMessage("Failed!");
throw rug_exception(); throw rug_exception();
} }
exit(4);
print(hlog, tie(m1.native, m2.native));
m1.native = iT1 * xpush0(d1*forcev); m1.native = iT1 * xpush0(d1*forcev);
m2.native = iT1 * xpush0(t-d2*forcev); m2.native = iT1 * xpush0(t-d2*forcev);
println(hlog, " -> ", tie(m1.native, m2.native));
if(nonzero && d2>0) enqueue(&m2); if(nonzero && d2>0) enqueue(&m2);
return nonzero; return nonzero;
} }
@ -780,7 +771,6 @@ EX void subdivide() {
if(!good_shape) { if(!good_shape) {
USING_NATIVE_GEOMETRY; USING_NATIVE_GEOMETRY;
mm->native = mid(m->native, m2->native); mm->native = mid(m->native, m2->native);
println(hlog, "mid of ", m->native, " and ", m2->native, " is ", mm->native);
} }
mm->valid = m->valid && m2->valid; mm->valid = m->valid && m2->valid;
if(mm->valid) qvalid++; if(mm->valid) qvalid++;
@ -1082,8 +1072,6 @@ EX void drawRugScene() {
auto& rug = queuecurve(0, 0xFFFFFFFF, PPR::LINE); auto& rug = queuecurve(0, 0xFFFFFFFF, PPR::LINE);
println(hlog, "rugView = ", rugView);
rug.V = rugView; rug.V = rugView;
rug.offset_texture = 0; rug.offset_texture = 0;
rug.tinf = &tinf; rug.tinf = &tinf;