git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@528 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-11-07 20:12:43 +00:00
parent 1491efe760
commit ef680076a0
6 changed files with 34 additions and 34 deletions
+3 -3
View File
@@ -472,8 +472,8 @@ void parsemessages(int cn, dynent *d, ucharbuf &p)
int action = getint(p);
if(f.state==CTFF_STOLEN)
{
int thief_cn = getint(p);
f.thief = thief_cn == getclientnum() ? player1 : getclient(thief_cn);
int actor_cn = getint(p);
f.actor = actor_cn == getclientnum() ? player1 : getclient(actor_cn);
f.flag->spawned = false;
}
else if(f.state==CTFF_DROPPED)
@@ -497,7 +497,7 @@ void parsemessages(int cn, dynent *d, ucharbuf &p)
if(action==SV_FLAGRETURN)
{
int returnerer_cn = getint(p);
f.thief = returnerer_cn == getclientnum() ? player1 : getclient(returnerer_cn);
f.actor = returnerer_cn == getclientnum() ? player1 : getclient(returnerer_cn);
}
f.flag->x = (ushort) f.originalpos.x;
f.flag->y = (ushort) f.originalpos.y;