no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@572 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-11-11 00:54:17 +00:00
parent 765084e22e
commit 50736432e3
3 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -471,19 +471,23 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
// EDIT: AH
case SV_FLAGINFO:
{
conoutf("received server flag answer 1"); //fixme
int flag = getint(p);
if(flag<0||flag>1) return;
flaginfo &f = flaginfos[flag];
f.state = getint(p);
int action = getint(p);
if(f.state==CTFF_STOLEN)
conoutf("received server flag answer 2");
if(f.state==CTFF_STOLEN)
{
conoutf("flag stolen"); //fixme
int actor_cn = getint(p);
f.actor = actor_cn == getclientnum() ? player1 : getclient(actor_cn);
f.flag->spawned = false;
}
else if(f.state==CTFF_DROPPED)
{
conoutf("flag dropped"); //fixme
f.flag->x = (ushort) (getint(p)/DMF);
f.flag->y = (ushort) (getint(p)/DMF);
f.flag->z = (ushort) (getint(p)/DMF);
@@ -500,6 +504,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
}
else if(f.state==CTFF_INBASE)
{
conoutf("flag in base"); //fixme
if(action==SV_FLAGRETURN)
{
int returnerer_cn = getint(p);