Update locally position of dropped flag

After dropping the flag player1 will see for a very short moment,
before flag position will be updated by server, flag dropped at player1
position. Earlier he could see for this moment flag dropped in a place,
when it was picked up.
This commit is contained in:
aurhat
2015-05-13 20:43:56 +02:00
parent a9bf87b1e7
commit 65c2e0f83a
+3
View File
@@ -521,6 +521,9 @@ void tryflagdrop(bool manual)
{
f.flagent->spawned = false;
f.state = CTFF_DROPPED;
f.pos.x = round(player1->o.x);
f.pos.y = round(player1->o.y);
f.pos.z = round(player1->o.z);
f.ack = false;
flagdropmillis = lastmillis+3000;
addmsg(SV_FLAGACTION, "rii", manual ? FA_DROP : FA_LOST, f.team);