]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix naming of two fields
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 8 May 2011 15:25:44 +0000 (15:25 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Mon, 9 May 2011 08:39:26 +0000 (10:39 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11127 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=b6b3148dd653325f5018c5911f44c23bbf8be477

dpdefs/source_compare.txt
progsvm.h
prvm_edict.c
sv_user.c

index 0491f211bae9e34a2360014981abbc5ab1a42236..4fb6d6b11765f5b42401e05225306c8102e9212e 100644 (file)
@@ -6,8 +6,6 @@
 // progs: Builtin #492 declared but not defined
 // progs: Builtin #493 declared but not defined
 // progs: Builtin #608 declared but not defined
-// progs: Field ping_packetloss declared but not defined
-// progs: Field ping_movementloss declared but not defined
 // progs: Field frame2 declared but not defined
 // progs: Field frame3 declared but not defined
 // progs: Field frame4 declared but not defined
@@ -429,8 +427,6 @@ float require_spawnfunc_prefix; // DP_UNKNOWN
 .float fullbright; // DP_UNKNOWN
 .float hull; // DP_UNKNOWN
 .float items2; // DP_UNKNOWN
-.float movementloss; // DP_UNKNOWN
-.float packetloss; // DP_UNKNOWN
 .float pmodel; // DP_UNKNOWN
 .float renderamt; // DP_UNKNOWN
 .float rendermode; // DP_UNKNOWN
index 1dc25e813d198d1b6f1b8bbfb29963ae55c15fc9..ac5dd22801a351b8c76b3e69b25255778e0d6256 100644 (file)
--- a/progsvm.h
+++ b/progsvm.h
@@ -226,8 +226,8 @@ typedef struct prvm_prog_fieldoffsets_s
        int nodrawtoclient; // ssqc
        int pflags; // ssqc
        int ping; // ssqc
-       int packetloss; // ssqc
-       int movementloss; // ssqc
+       int ping_packetloss; // ssqc
+       int ping_movementloss; // ssqc
        int pitch_speed; // ssqc / csqc
        int playermodel; // ssqc
        int playerskin; // ssqc
index 6d99792b8ed40533dbe339b2381b6aee71b2ba72..7ad872f433000035b6fabea3c81016781fa6cea1 100644 (file)
@@ -1616,8 +1616,8 @@ void PRVM_FindOffsets(void)
        prog->fieldoffsets.nodrawtoclient                 = PRVM_ED_FindFieldOffset("nodrawtoclient");
        prog->fieldoffsets.pflags                         = PRVM_ED_FindFieldOffset("pflags");
        prog->fieldoffsets.ping                           = PRVM_ED_FindFieldOffset("ping");
-       prog->fieldoffsets.packetloss                     = PRVM_ED_FindFieldOffset("ping_packetloss");
-       prog->fieldoffsets.movementloss                   = PRVM_ED_FindFieldOffset("ping_movementloss");
+       prog->fieldoffsets.ping_packetloss                = PRVM_ED_FindFieldOffset("ping_packetloss");
+       prog->fieldoffsets.ping_movementloss              = PRVM_ED_FindFieldOffset("ping_movementloss");
        prog->fieldoffsets.pitch_speed                    = PRVM_ED_FindFieldOffset("pitch_speed");
        prog->fieldoffsets.playermodel                    = PRVM_ED_FindFieldOffset("playermodel");
        prog->fieldoffsets.playerskin                     = PRVM_ED_FindFieldOffset("playerskin");
index 548a1298dd62eafa2469e84d2c283d64201c81a3..1158d2e70556baa88c572d9ccf392a586e5afbf5 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -762,8 +762,8 @@ void SV_ApplyClientMove (void)
        if ((val = PRVM_EDICTFIELDVALUE(host_client->edict, prog->fieldoffsets.cursor_trace_endpos))) VectorCopy(move->cursor_impact, val->vector);
        if ((val = PRVM_EDICTFIELDVALUE(host_client->edict, prog->fieldoffsets.cursor_trace_ent))) val->edict = PRVM_EDICT_TO_PROG(PRVM_EDICT_NUM(move->cursor_entitynumber));
        if ((val = PRVM_EDICTFIELDVALUE(host_client->edict, prog->fieldoffsets.ping))) val->_float = host_client->ping * 1000.0;
-       if ((val = PRVM_EDICTFIELDVALUE(host_client->edict, prog->fieldoffsets.packetloss))) val->_float = packetloss / (float) NETGRAPH_PACKETS;
-       if ((val = PRVM_EDICTFIELDVALUE(host_client->edict, prog->fieldoffsets.movementloss))) val->_float = movementloss / (float) NETGRAPH_PACKETS;
+       if ((val = PRVM_EDICTFIELDVALUE(host_client->edict, prog->fieldoffsets.ping_packetloss))) val->_float = packetloss / (float) NETGRAPH_PACKETS;
+       if ((val = PRVM_EDICTFIELDVALUE(host_client->edict, prog->fieldoffsets.ping_movementloss))) val->_float = movementloss / (float) NETGRAPH_PACKETS;
 }
 
 void SV_FrameLost(int framenum)