aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomasMonroe314 <ThomasMonroe@protonmail.com>2017-11-28 07:25:41 -0600
committerparamat <mat.gregory@virginmedia.com>2017-12-10 14:24:28 +0000
commit419799b8312244d6689b48e5fbdf8dd74b6cc7bd (patch)
tree1bb9a6fb1f7c7006a176b6ed66ce435335f0ebe8 /src
parent03caa1e31902d99d60ad3c015c681a3fee679638 (diff)
downloadminetest-419799b8312244d6689b48e5fbdf8dd74b6cc7bd.tar.gz
minetest-419799b8312244d6689b48e5fbdf8dd74b6cc7bd.tar.bz2
minetest-419799b8312244d6689b48e5fbdf8dd74b6cc7bd.zip
F5 debug info: Add colons, use lowercase except for FPS and RTT
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 2aeec2d44..fca9c5e68 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -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();
}
}