Author: esr
Date: Thu Apr 19 06:14:21 2007
New Revision: 16931

URL: http://svn.gna.org/viewcvs/wesnoth?rev=16931&view=rev
Log:
SVN revision is now displayed where appropriate.

Modified:
    trunk/src/editor/editor_main.cpp
    trunk/src/game.cpp
    trunk/src/game_config.hpp
    trunk/src/titlescreen.cpp

Modified: trunk/src/editor/editor_main.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor/editor_main.cpp?rev=16931&r1=16930&r2=16931&view=diff
==============================================================================
--- trunk/src/editor/editor_main.cpp (original)
+++ trunk/src/editor/editor_main.cpp Thu Apr 19 06:14:21 2007
@@ -65,7 +65,9 @@
                    << "  --datadir         Select the data directory to use\n";
                        return 0;
                } else if(val == "--version" || val == "-v") {
-                       std::cout << "Battle for Wesnoth " << 
game_config::version
+                       std::cout << "Battle for Wesnoth " 
+                                 << game_config::version
+                                 << " (" << game_config::svnrev << ")"
                                  << "\n";
                        return 0;
                } else if(val == "--path") {

Modified: trunk/src/game.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game.cpp?rev=16931&r1=16930&r2=16931&view=diff
==============================================================================
--- trunk/src/game.cpp (original)
+++ trunk/src/game.cpp Thu Apr 19 06:14:21 2007
@@ -1930,7 +1930,7 @@
 #endif
 
        try {
-               std::cerr << "Battle for Wesnoth v" << VERSION << "\n";
+         std::cerr << "Battle for Wesnoth v" << VERSION << " (" << SVNREV << 
")\n";
                time_t t = time(NULL);
                std::cerr << "Started on " << ctime(&t) << "\n";
 

Modified: trunk/src/game_config.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_config.hpp?rev=16931&r1=16930&r2=16931&view=diff
==============================================================================
--- trunk/src/game_config.hpp (original)
+++ trunk/src/game_config.hpp Thu Apr 19 06:14:21 2007
@@ -32,6 +32,7 @@
        extern int kill_experience;
        extern int lobby_refresh;
        extern const std::string version;
+       extern const std::string svnrev;
 
        extern bool debug, editor, ignore_replay_errors, mp_debug, exit_at_end, 
no_delay, disable_autosave;
 

Modified: trunk/src/titlescreen.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/titlescreen.cpp?rev=16931&r1=16930&r2=16931&view=diff
==============================================================================
--- trunk/src/titlescreen.cpp (original)
+++ trunk/src/titlescreen.cpp Thu Apr 19 06:14:21 2007
@@ -231,7 +231,8 @@
        LOG_DP << "faded logo\n";
 
        const std::string& version_str = _("Version") + std::string(" ") +
-                                        game_config::version;
+                                        game_config::version +
+         " (" + game_config::svnrev + ")";
 
        const SDL_Rect version_area = font::draw_text(NULL,screen_area(),
                                                      font::SIZE_TINY,


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to