]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Moved observe_blocked to a separate byte
authorz411 <z411@omaera.org>
Wed, 19 Oct 2022 18:52:27 +0000 (15:52 -0300)
committerz411 <z411@omaera.org>
Wed, 19 Oct 2022 18:52:27 +0000 (15:52 -0300)
qcsrc/client/main.qc
qcsrc/server/client.qc

index 72105bea5c92137c9851351c25586ef9994fd2dc..38e78e7ba32e455c67d009347011ec0da37fc0fa 100644 (file)
@@ -653,7 +653,6 @@ NET_HANDLE(ENT_CLIENT_CLIENTDATA, bool isnew)
                newspectatee_status = 0;
 
        spectatorbutton_zoom = (f & BIT(2));
-       observe_blocked = (f & BIT(3));
 
        if(f & BIT(4))
        {
@@ -1113,6 +1112,7 @@ NET_HANDLE(ENT_CLIENT_INIT, bool isnew)
        damagepush_speedfactor = ReadByte() / 255.0;
 
        serverflags = ReadByte();
+       observe_blocked = ReadByte();
 
        g_trueaim_minrange = ReadCoord();
 
index c5c79ed02921cb6713de634246cc593b29431f4a..1bb725452827f579fd0c52e636049a008acb880d 100644 (file)
@@ -138,7 +138,6 @@ bool ClientData_Send(entity this, entity to, int sf)
        if (CS(e).race_completed)       sf |= BIT(0); // forced scoreboard
        if (CS(to).spectatee_status)    sf |= BIT(1); // spectator ent number follows
        if (CS(e).zoomstate)            sf |= BIT(2); // zoomed
-       if (observe_blocked)            sf |= BIT(3); // observing blocked
        if (autocvar_sv_showspectators == 1 || (autocvar_sv_showspectators && IS_SPEC(to)))
                                        sf |= BIT(4); // show spectators
 
@@ -879,6 +878,7 @@ void ClientInit_misc(entity this)
        WriteByte(channel, this.count * 255.0); // g_balance_armor_blockpercent
        WriteByte(channel, this.cnt * 255.0); // g_balance_damagepush_speedfactor
        WriteByte(channel, serverflags);
+       WriteByte(channel, observe_blocked);
        WriteCoord(channel, autocvar_g_trueaim_minrange);
 }