Show reported map seed on debug info (F5)
authorPerttu Ahola <celeron55@gmail.com>
Wed, 4 Apr 2012 19:43:54 +0000 (22:43 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Wed, 4 Apr 2012 19:43:54 +0000 (22:43 +0300)
src/game.cpp

index fb429beba047d2f692f7b191d32a09bcbc3030f4..ec5881d2531d6caf70fa482cb995eff5540753b2 100644 (file)
@@ -2600,11 +2600,12 @@ void the_game(
                        char temptext[300];
                        snprintf(temptext, 300,
                                        "(% .1f, % .1f, % .1f)"
-                                       " (yaw = %.1f)",
+                                       " (yaw = %.1f) (seed = %lli)",
                                        player_position.X/BS,
                                        player_position.Y/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->setVisible(true);