mirror of
https://github.com/glest/glest-source.git
synced 2025-08-10 18:34:05 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user