Fixed crash in message dispatcher after 'meta unload'.
Various cosmetic changes.
This commit is contained in:
parent
9720a63401
commit
ff6c56aeac
37 changed files with 949 additions and 602 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue