From 83ac4c681a2016d927ec6c8ced1caadead4d7bd8 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Thu, 16 Nov 2006 20:22:35 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@694 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clients2c.cpp | 8 ++------ source/src/command.cpp | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) 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; };