]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Adjust a debug message and a comment
authorterencehill <piuntn@gmail.com>
Tue, 16 Apr 2019 18:03:14 +0000 (20:03 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 16 Apr 2019 18:03:14 +0000 (20:03 +0200)
qcsrc/common/weapons/weapon/shockwave.qc
qcsrc/server/bot/default/navigation.qc

index 7e60667e5350bf1b8bb1c62bb19645df71d1ed42..cdd0a0f92a315ecf1b3e774aa21b93ea17a5edfb 100644 (file)
@@ -658,7 +658,7 @@ void Draw_Shockwave(entity this)
        if(a < ALPHA_MIN_VISIBLE) { delete(this); }
 
        // WEAPONTODO: save this only once when creating the entity
-       vector sw_color = entcs_GetColor(this.sv_entnum - 1); // GetTeamRGB(entcs_GetTeam(this.sv_entnum));
+       vector sw_color = entcs_GetColor(this.sv_entnum - 1); // Team_ColorRGB(entcs_GetTeam(this.sv_entnum));
 
        // WEAPONTODO: trace to find what we actually hit
        vector endpos = (this.sw_shotorg + (this.sw_shotdir * this.sw_distance));
index 5553a6b87f972b7018b37b6f28fa87a587a76fb2..d63e158781ea6e2c6bdf83214484a5fc32aa3609 100644 (file)
@@ -1903,7 +1903,7 @@ void navigation_unstuck(entity this)
        {
                // evaluate the next goal on the queue
                float d = vlen2(this.origin - bot_waypoint_queue_goal.origin);
-               LOG_DEBUG(this.netname, " evaluating ", bot_waypoint_queue_goal.classname, " with distance ", ftos(d));
+               LOG_DEBUG(this.netname, " evaluating ", bot_waypoint_queue_goal.classname, " with squared distance ", ftos(d));
                set_tracewalk_dest(bot_waypoint_queue_goal, this.origin, false);
                if (tracewalk(this, this.origin, STAT(PL_MIN, this), STAT(PL_MAX, this),
                        tracewalk_dest, tracewalk_dest_height, bot_navigation_movemode))