accept flag-stolen message even if actor is not known yet (fixes flag info on connect)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2983 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-10-12 14:14:12 +00:00
parent ffacd9e246
commit b04bb1bf68
2 changed files with 3 additions and 2 deletions
+1 -2
View File
@@ -368,9 +368,8 @@ void flagscore(int fln)
void flagstolen(int flag, int act)
{
playerent *actor = act == getclientnum() ? player1 : getclient(act);
if(!actor) return;
flaginfo &f = flaginfos[flag];
f.actor = actor;
f.actor = actor; // could be NULL if we just connected
f.actor_cn = act;
f.flagent->spawned = false;
f.ack = true;