1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-01 01:49:03 +00:00

ru:: load_world error messages

This commit is contained in:
Zeno Rogue
2025-12-06 21:58:10 +01:00
parent 0c4ef7647a
commit 0d41fcbc29

View File

@@ -113,11 +113,13 @@ void load_room(fhstream& f, cell *c) {
codes[s[0]] = i;
break;
}
if(!codes.count(s[0])) println(hlog, "unrecognized: ", t);
}
if(1) {
vector<string> bmap;
for(int y=0; y<room_y; y++) bmap.push_back(scanline_noblank(f));
for(int y=0; y<room_y; y++) for(int x=0; x<room_x; x++) {
if(bmap[y][x] != 'b' && !codes.count(bmap[y][x])) println(hlog, format("illegal code: %c", bmap[y][x]));
if(bmap[y][x] == 'b') ;
else if(y < room_y-1 && bmap[y+1][x] == 'b') ;
else if(x < room_x-1 && bmap[y][x+1] == 'b') ;