Added a banner with version + human-readable start time...
...to be displayed at game start.
This commit is contained in:
parent
8bbbc3bd7a
commit
46e4313907
2 changed files with 6 additions and 1 deletions
|
@ -64,6 +64,7 @@
|
|||
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
#include <ctime>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <iterator>
|
||||
|
@ -1688,6 +1689,10 @@ int play_game(int argc, char** argv)
|
|||
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";
|
||||
|
|
|
@ -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()))
|
||||
|
|
Loading…
Add table
Reference in a new issue