Bugfixes for network game launching:

- discard inprogress messages that don't apply during launch
- added better error handling of disconnects during game launch and play on both server and clients
This commit is contained in:
Mark Vejvoda
2010-05-04 02:32:43 +00:00
parent acf4bebba6
commit 4b1a392f00
5 changed files with 150 additions and 80 deletions

View File

@@ -143,6 +143,28 @@ void deleteMapValues(T beginIt, T endIt){
}
}
template <typename T, typename U>
class create_map
{
private:
std::map<T, U> m_map;
public:
create_map(const T& key, const U& val)
{
m_map[key] = val;
}
create_map<T, U>& operator()(const T& key, const U& val)
{
m_map[key] = val;
return *this;
}
operator std::map<T, U>()
{
return m_map;
}
};
}}//end namespace
#endif