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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user