]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/nexball.qc
waypointsprites: always add color to WaypointSprite_Spawn()
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / nexball.qc
index 13e8eea40a9103424f89eb187af775d0903f247f..57bbc531ec1ebda4e04d3f0ce49974ae391faea7 100644 (file)
@@ -202,9 +202,8 @@ void DropBall (entity ball, vector org, vector vel)
 
        WaypointSprite_Kill(ball.owner.waypointsprite_attachedforcarrier);
        //WaypointSprite_AttachCarrier("nb-ball", ball);
-       WaypointSprite_Spawn("nb-ball", 0, 0, ball, '0 0 64', world, ball.team, ball, waypointsprite_attachedforcarrier, FALSE); // no health bar please
+       WaypointSprite_Spawn("nb-ball", 0, 0, ball, '0 0 64', world, ball.team, ball, waypointsprite_attachedforcarrier, FALSE, RADARICON_FLAGCARRIER, BALL_SPRITECOLOR); // no health bar please
        WaypointSprite_UpdateRule(ball.waypointsprite_attachedforcarrier, 0, SPRITERULE_DEFAULT);
-       WaypointSprite_UpdateTeamRadar(ball.waypointsprite_attachedforcarrier, RADARICON_FLAGCARRIER, BALL_SPRITECOLOR);
 
        ball.owner.ballcarried = world;
        ball.owner = world;