diff --git a/source/src/clients2c.cpp b/source/src/clients2c.cpp index 1191b629..2cd454b3 100644 --- a/source/src/clients2c.cpp +++ b/source/src/clients2c.cpp @@ -273,11 +273,8 @@ void parsemessages(int cn, playerent *d, ucharbuf &p) break; }; - - case SV_FRAGS: - CN_CHECK; - players[cn]->frags = getint(p); + d->frags = getint(p); break; case SV_RESUME: @@ -354,8 +351,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p) break; case SV_CLIENTPING: - CN_CHECK; - players[cn]->ping = getint(p); + d->ping = getint(p); break; case SV_GAMEMODE: diff --git a/source/src/command.cpp b/source/src/command.cpp index 5c4851fc..34675401 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -67,7 +67,7 @@ char *getalias(char *name) bool addcommand(char *name, void (*fun)(), int narg) { if(!idents) idents = new hashtable; - ident c = { ID_COMMAND, name, 0, 0, 0, fun, narg, 0 }; + ident c = { ID_COMMAND, name, 0, 0, 0, fun, narg, 0, 0, false }; idents->access(name, &c); return false; };