Show reported map seed on debug info (F5)

This commit is contained in:
Perttu Ahola 2012-04-04 22:43:54 +03:00
parent 7bac62ee7f
commit 22a5a1fa43
1 changed files with 3 additions and 2 deletions

View File

@ -2600,11 +2600,12 @@ void the_game(
char temptext[300]; char temptext[300];
snprintf(temptext, 300, snprintf(temptext, 300,
"(% .1f, % .1f, % .1f)" "(% .1f, % .1f, % .1f)"
" (yaw = %.1f)", " (yaw = %.1f) (seed = %lli)",
player_position.X/BS, player_position.X/BS,
player_position.Y/BS, player_position.Y/BS,
player_position.Z/BS, player_position.Z/BS,
wrapDegrees_0_360(camera_yaw)); wrapDegrees_0_360(camera_yaw),
client.getMapSeed());
guitext2->setText(narrow_to_wide(temptext).c_str()); guitext2->setText(narrow_to_wide(temptext).c_str());
guitext2->setVisible(true); guitext2->setVisible(true);