clean up, and FIXME comments

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5527 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-08-02 21:10:49 +00:00
parent 437aca87f5
commit 53d17b76ad
5 changed files with 12 additions and 110 deletions
+1 -12
View File
@@ -631,20 +631,9 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
break;
}
case SV_SCOPE:
case SV_SCOPE: // FIXME remove in the next protocol change
{
int cn = getint(p), val = getint(p);
playerent *p = cn==getclientnum() ? player1 : getclient(cn);
if(!p || p==player1) break;
if(p->weaponsel->type != GUN_SNIPER)
{
/* The change weapon and the scope informations may exchange due to lag */
/* So, I do not think this break is necessary... */
// conoutf(_("bad scope-message for %s"), p->name);
break;
}
sniperrifle *sr = (sniperrifle *)p->weaponsel;
sr->setscope(val!=0);
break;
}