correctly initialize initial_response_ again

little typedef cleanup
This commit is contained in:
Gunter Labes 2007-10-23 08:30:10 +00:00
parent d2a0dddec5
commit 6c80874f6b
3 changed files with 3 additions and 5 deletions

View file

@ -145,7 +145,7 @@ const config* config::child(const std::string& key) const
config& config::add_child(const std::string& key)
{
std::vector<config*>& v = children[key];
child_list& v = children[key];
v.push_back(new config());
ordered_children.push_back(child_pos(children.find(key),v.size()-1));
return *v.back();
@ -153,7 +153,7 @@ config& config::add_child(const std::string& key)
config& config::add_child(const std::string& key, const config& val)
{
std::vector<config*>& v = children[key];
child_list& v = children[key];
v.push_back(new config(val));
ordered_children.push_back(child_pos(children.find(key),v.size()-1));
return *v.back();

View file

@ -217,8 +217,6 @@ static bool generate_lake(terrain_map& terrain, int x, int y, int lake_fall_off,
return true;
}
typedef gamemap::location location;
//! River generation.
//! Rivers have a source, and then keep on flowing
//! until they meet another body of water, which they flow into,

View file

@ -174,7 +174,7 @@ server::server(int port, input_stream& input, const std::string& config_file, si
lobby_players_(players_), input_(input), config_file_(config_file),
cfg_(read_config()), version_query_response_("version"),
login_response_("mustlogin"), join_lobby_response_("join_lobby"),
initial_response_(), old_initial_response_(initial_response_),
initial_response_("gamelist"), old_initial_response_(initial_response_),
last_stats_(time(NULL))
{
load_config();