fixed bug in map sharing (CVS internal)

This commit is contained in:
uid68803 2004-01-06 22:13:36 +00:00
parent 0b09efaefa
commit 421df161f4

View file

@ -293,12 +293,14 @@ void team::new_turn()
void team::get_shared_maps()
{
if(teams == NULL || info_.team_name == "" || info_.share_maps == false)
if(teams == NULL || info_.team_name == "" || info_.share_maps == false) {
return;
}
for(std::vector<team>::const_iterator t = teams->begin(); t != teams->end(); ++t) {
if(t->info_.team_name != info_.team_name)
if(t->info_.team_name != info_.team_name) {
continue;
}
const shroud_map& v = t->shroud_;
for(size_t x = 0; x != v.size(); ++x) {