shift-O print outdoor section and local/global position

This commit is contained in:
2025-01-08 20:47:47 -06:00
committed by Celtic Minstrel
parent dffd1202f6
commit a99b4be663

View File

@@ -1961,9 +1961,14 @@ void debug_print_location() {
} else if(is_out()) {
short x = univ.party.out_loc.x;
short y = univ.party.out_loc.y;
sout << "Debug: You're outside in sec x " << univ.party.outdoor_corner.x << ", y " << univ.party.outdoor_corner.y << '\n';
add_string_to_buf(sout.str());
sout.str("");
sout.seekp(0);
sout << " local x " << x << ", y " << y;
x += 48 * univ.party.outdoor_corner.x;
y += 48 * univ.party.outdoor_corner.y;
sout << "Debug: You're outside at x " << x << ", y " << y << '.';
sout << " / global x " << x << ", y " << y << '.';
} else if(is_combat()) {
location loc = univ.current_pc().combat_pos;
sout << "Debug: You're in combat at x " << loc.x << ", y " << loc.y << '.';