1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-29 04:47:41 +00:00

rogueviz::sag:: cleared debug

This commit is contained in:
Zeno Rogue
2021-06-25 15:14:22 +02:00
parent 3c882ec6c0
commit 59ea009521

View File

@@ -410,27 +410,24 @@ namespace sag {
string l1, l2; string l1, l2;
while(true) { while(true) {
int c = fgetc(f.f); int c = fgetc(f.f);
if(c == EOF) goto finish; if(c == EOF) return;
else if(c == ';') break; else if(c == ';') break;
else if(rv_ignore(c)) ; else if(rv_ignore(c)) ;
else l1 += c; else l1 += c;
} }
while(true) { while(true) {
int c = fgetc(f.f); int c = fgetc(f.f);
if(c == EOF) goto finish; if(c == EOF) return;
else if(c == ';') goto finish; else if(c == ';') return;
else if(rv_ignore(c)) break; else if(rv_ignore(c)) break;
else l2 += c; else l2 += c;
} }
printf("%s -> %s\n", l1.c_str(), l2.c_str());
if(!id_known(l1)) { if(!id_known(l1)) {
printf("label unknown: %s\n", l1.c_str()); printf("label unknown: %s\n", l1.c_str());
exit(1); exit(1);
} }
hubval[getid(l1)] = atoi(l2.c_str()); hubval[getid(l1)] = atoi(l2.c_str());
} }
finish:
println(hlog, "hubval = ", hubval);
} }
void readsag(const char *fname) { void readsag(const char *fname) {