F5 debug info: Add colons, use lowercase except for FPS and RTT
authorThomasMonroe314 <ThomasMonroe@protonmail.com>
Tue, 28 Nov 2017 13:25:41 +0000 (07:25 -0600)
committerparamat <mat.gregory@virginmedia.com>
Sun, 10 Dec 2017 14:24:28 +0000 (14:24 +0000)
src/game.cpp

index 2aeec2d44bad2e2a6d9333fc280d64f74648ff49..fca9c5e68f28b6161e143b6f70d6512a5be134db 100644 (file)
@@ -4421,17 +4421,17 @@ void Game::updateGui(const RunStats &stats, f32 dtime, const CameraOrientation &
                std::ostringstream os(std::ios_base::binary);
                os << std::fixed
                        << PROJECT_NAME_C " " << g_version_hash
-                       << ", FPS " << fps
+                       << ", FPS: " << fps
                        << std::setprecision(0)
-                       << ", Drawtime " << drawtime_avg << "ms"
+                       << ", drawtime: " << drawtime_avg << "ms"
                        << std::setprecision(1)
-                       << ", Dtime jitter "
+                       << ", dtime jitter: "
                        << (stats.dtime_jitter.max_fraction * 100.0) << "%"
                        << std::setprecision(1)
-                       << ", View range "
+                       << ", view range: "
                        << (draw_control->range_all ? "All" : itos(draw_control->wanted_range))
                        << std::setprecision(3)
-                       << ", RTT " << client->getRTT() << "s";
+                       << ", RTT: " << client->getRTT() << "s";
                setStaticText(guitext, utf8_to_wide(os.str()).c_str());
                guitext->setVisible(true);
        } else {
@@ -4449,12 +4449,12 @@ void Game::updateGui(const RunStats &stats, f32 dtime, const CameraOrientation &
        if (flags.show_debug) {
                std::ostringstream os(std::ios_base::binary);
                os << std::setprecision(1) << std::fixed
-                       << "Pos (" << (player_position.X / BS)
+                       << "pos: (" << (player_position.X / BS)
                        << ", " << (player_position.Y / BS)
                        << ", " << (player_position.Z / BS)
-                       << "), Yaw " << (wrapDegrees_0_360(cam.camera_yaw)) << "° "
+                       << "), yaw: " << (wrapDegrees_0_360(cam.camera_yaw)) << "° "
                        << yawToDirectionString(cam.camera_yaw)
-                       << ", Seed " << ((u64)client->getMapSeed());
+                       << ", seed: " << ((u64)client->getMapSeed());
 
                if (runData.pointed_old.type == POINTEDTHING_NODE) {
                        ClientMap &map = client->getEnv().getClientMap();
@@ -4462,8 +4462,8 @@ void Game::updateGui(const RunStats &stats, f32 dtime, const CameraOrientation &
                        MapNode n = map.getNodeNoEx(runData.pointed_old.node_undersurface);
 
                        if (n.getContent() != CONTENT_IGNORE && nodedef->get(n).name != "unknown") {
-                               os << ", Pointed " << nodedef->get(n).name
-                                       << ", Param2 " << (u64) n.getParam2();
+                               os << ", pointed: " << nodedef->get(n).name
+                                       << ", param2: " << (u64) n.getParam2();
                        }
                }