Fixed crash in message dispatcher after 'meta unload'.

Various cosmetic changes.
This commit is contained in:
jeefo 2019-09-14 23:13:55 +03:00
commit ff6c56aeac
37 changed files with 949 additions and 602 deletions

View file

@ -122,8 +122,11 @@ public:
public:
int32 add (const String &name, int32 id);
int32 id (NetMsg msg);
void start (edict_t *ent, int32 type);
void stop ();
void ensureMessages ();
public:
template <typename T> void collect (const T &value) {
@ -137,10 +140,6 @@ public:
m_current = NetMsg::None;
}
int32 id (NetMsg msg) const {
return m_maps[msg];
}
private:
void reset () {
m_current = NetMsg::None;