]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
document potential bug in entcs
authorMartin Taibr <taibr.martin@gmail.com>
Tue, 29 Aug 2017 01:59:56 +0000 (03:59 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Tue, 29 Aug 2017 01:59:56 +0000 (03:59 +0200)
qcsrc/common/ent_cs.qh
qcsrc/common/mutators/mutator/damagetext/cl_damagetext.qc

index 14a758b2615a88f9d8bf825eab629dad3f1877ae..0180fea784793f921036cf52bc4a2a91a1ad0aa1 100644 (file)
@@ -9,8 +9,13 @@ REGISTER_NET_TEMP(CLIENT_ENTCS)
 
 /** True when private information such as origin is available */
 .bool m_entcs_private;
+
 /** True when origin is available */
+// FIXME: it seems sometimes this is false when observing even though observers should be able to know about all players
+// easily reproducible on heart_v2 or The_Yard with bots - might be because they lack waypoints and bots stand still
+// it has happened in matches with players and no bots but much more rarely
 .bool has_origin;
+
 /** True when a recent server sent origin has been received */
 .bool has_sv_origin;
 
index bafe8c460733dae6c492706f8a8b6eb0fb405567..0977b62cebe380b5172e0ef03c6d11f38546da54 100644 (file)
@@ -233,9 +233,7 @@ NET_HANDLE(damagetext, bool isNew)
         }
         make_impure(NEW(DamageText, server_entity_index, entcs.origin, false, health, armor, potential_damage, deathtype, friendlyfire));
     } else if (autocvar_cl_damagetext_2d && spectatee_status != -1) {
-        // never show 2d damagetext when observing
-        // on some maps (hearth_v2, The_Yard), sometimes has_origin is false even though observers should know about all players
-        // it happens mostly with bots but occasionally also with players
+        // never show 2d damagetext when observing - might be a bug in .has_origin
 
         // screen coords only
         vector screen_pos = vec2(vid_conwidth * autocvar_cl_damagetext_2d_pos.x, vid_conheight * autocvar_cl_damagetext_2d_pos.y);