]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix raptor hud warn spam.
authorJakob MG <jakob_mg@hotmail.com>
Sun, 20 Mar 2011 21:56:34 +0000 (22:56 +0100)
committerJakob MG <jakob_mg@hotmail.com>
Sun, 20 Mar 2011 21:56:34 +0000 (22:56 +0100)
qcsrc/client/vehicles/vehicles.qc

index 577f23f36c76fa6eb33a229bbd694226eabe515c..f54156d475ca06d3b5290ea5d976e0724be0abe7 100644 (file)
@@ -174,9 +174,7 @@ void CSQC_SPIDER_HUD()
         picsize_y *= autocvar_cl_vehicle_spiderbot_cross_size;
 
         drawpic('0.5 0 0' * (vid_conwidth - picsize_x) + '0 0.5 0' * (vid_conheight - picsize_y), SPIDER_CROSS, picsize, '1 1 1', autocvar_cl_vehicle_spiderbot_cross_alpha, DRAWFLAG_ADDITIVE);
-
     }
-
 }
 
 
@@ -197,9 +195,12 @@ void CSQC_RAPTOR_HUD()
     }
 
        movedt = time - dropmark.move_time;
-       dropmark.move_time = time;
-    vel = (view_origin - lastpos) * (1 / movedt);
-    lastpos  = view_origin;
+       if(movedt)
+       {
+        dropmark.move_time = time;
+        vel = (view_origin - lastpos) * (1 / movedt);
+        lastpos  = view_origin;
+    }
 
     // Fetch health & ammo stats
     hp      = bound(0,getstatf(STAT_VEHICLESTAT_HEALTH), 1);
@@ -268,7 +269,7 @@ void CSQC_RAPTOR_HUD()
             where_z = 0;
             drawpic(where, raptor_d, picsize, '0 2 0', 1, DRAWFLAG_ADDITIVE);
         }
-        dropmark.cnt = time + 2;
+        dropmark.cnt = time + 5;
     }
     else
     {