Author: uso
Date: Wed Aug 22 06:53:57 2007
New Revision: 19718
URL: http://svn.gna.org/viewcvs/wesnoth?rev=19718&view=rev
Log:
use the proper default for the start team gold
Modified:
trunk/src/team.cpp
trunk/src/team.hpp
Modified: trunk/src/team.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/team.cpp?rev=19718&r1=19717&r2=19718&view=diff
==============================================================================
--- trunk/src/team.cpp (original)
+++ trunk/src/team.cpp Wed Aug 22 06:53:57 2007
@@ -101,7 +101,7 @@
// this also handles the loading of older save files, though with wrong
// values for the start gold in the game settings screen
start_gold = lexical_cast_default<int>(cfg["start_gold"],
- lexical_cast_default<int>(gold,
0));
+ lexical_cast_default<int>(gold,
DEFAULT_TEAM_GOLD));
income = cfg["income"];
name = cfg["name"];
team_name = cfg["team_name"];
Modified: trunk/src/team.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/team.hpp?rev=19718&r1=19717&r2=19718&view=diff
==============================================================================
--- trunk/src/team.hpp (original)
+++ trunk/src/team.hpp Wed Aug 22 06:53:57 2007
@@ -26,6 +26,8 @@
#include <vector>
#include "SDL.h"
+
+#define DEFAULT_TEAM_GOLD 100
//This class stores all the data for a single 'side' (in game nomenclature).
//e.g. there is only one leader unit per team.
@@ -115,7 +117,7 @@
};
static std::map<int, color_range> team_color_range_;
- team(const config& cfg, int gold=100);
+ team(const config& cfg, int gold=DEFAULT_TEAM_GOLD);
~team() {};
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits