From 65c2e0f83a9eba6b544aa3bc001c4a0fbfe819bd Mon Sep 17 00:00:00 2001 From: aurhat Date: Wed, 13 May 2015 20:42:48 +0200 Subject: [PATCH] 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. --- source/src/entities.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/src/entities.cpp b/source/src/entities.cpp index 2ea8c232..8c05c059 100644 --- a/source/src/entities.cpp +++ b/source/src/entities.cpp @@ -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);