wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src game.cpp gamestatus.cpp


From: Philippe Plantier
Subject: [Wesnoth-cvs-commits] wesnoth/src game.cpp gamestatus.cpp
Date: Sun, 20 Mar 2005 07:05:53 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Philippe Plantier <address@hidden>      05/03/20 12:05:53

Modified files:
        src            : game.cpp gamestatus.cpp 

Log message:
        Added a banner with version + human-readable start time to be displayed 
at game start.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/game.cpp.diff?tr1=1.209&tr2=1.210&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/gamestatus.cpp.diff?tr1=1.59&tr2=1.60&r1=text&r2=text

Patches:
Index: wesnoth/src/game.cpp
diff -u wesnoth/src/game.cpp:1.209 wesnoth/src/game.cpp:1.210
--- wesnoth/src/game.cpp:1.209  Sat Mar 19 23:07:01 2005
+++ wesnoth/src/game.cpp        Sun Mar 20 12:05:52 2005
@@ -1,4 +1,4 @@
-/* $Id: game.cpp,v 1.209 2005/03/19 23:07:01 gruikya Exp $ */
+/* $Id: game.cpp,v 1.210 2005/03/20 12:05:52 gruikya Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -64,6 +64,7 @@
 
 #include <cmath>
 #include <cstdlib>
+#include <ctime>
 #include <fstream>
 #include <iostream>
 #include <iterator>
@@ -1688,6 +1689,10 @@
 int main(int argc, char** argv)
 {
        try {
+               std::cerr << "Battle for Wesnoth v" << VERSION << "\n";
+               std::time_t t = std::time(NULL);
+               std::cerr << "Started on " << std::ctime(&t) << "\n";
+
                std::cerr << "started game: " << SDL_GetTicks() << "\n";
                const int res = play_game(argc,argv);
                std::cerr << "exiting with code " << res << "\n";
Index: wesnoth/src/gamestatus.cpp
diff -u wesnoth/src/gamestatus.cpp:1.59 wesnoth/src/gamestatus.cpp:1.60
--- wesnoth/src/gamestatus.cpp:1.59     Sat Mar 19 19:48:01 2005
+++ wesnoth/src/gamestatus.cpp  Sun Mar 20 12:05:53 2005
@@ -1,4 +1,4 @@
-/* $Id: gamestatus.cpp,v 1.59 2005/03/19 19:48:01 silene Exp $ */
+/* $Id: gamestatus.cpp,v 1.60 2005/03/20 12:05:53 gruikya Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -33,7 +33,7 @@
 time_of_day::time_of_day(const config& cfg)
                  : lawful_bonus(atoi(cfg["lawful_bonus"].c_str())),
                    image(cfg["image"]), name(cfg["name"]), id(cfg["id"]),
-                                  image_mask(cfg["mask"]),
+                  image_mask(cfg["mask"]),
                    red(atoi(cfg["red"].c_str())),
                    green(atoi(cfg["green"].c_str())),
                    blue(atoi(cfg["blue"].c_str()))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]