]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Very minor cleanups
authorterencehill <piuntn@gmail.com>
Tue, 18 Dec 2018 14:31:46 +0000 (15:31 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 18 Dec 2018 14:31:46 +0000 (15:31 +0100)
qcsrc/client/mapvoting.qc
qcsrc/server/bot/default/bot.qc
qcsrc/server/bot/default/bot.qh

index 5de11a3b856ca1f3648509a09cfdb38a14fe71f1..61ba69b6a277c03eacab792d0feade3bc69f9970 100644 (file)
@@ -322,6 +322,7 @@ float MapVote_Selection(vector topleft, vector cellsize, float rows, float colum
 }
 
 vector prev_mousepos;
+// draws map vote or gametype vote
 void MapVote_Draw()
 {
        string map;
@@ -464,7 +465,7 @@ void MapVote_Draw()
        mv_selection = MapVote_Selection(pos, dist, rows, mv_columns);
 
        if (mv_top2_time)
-               mv_top2_alpha = max(0.2, 1 - (time - mv_top2_time)*(time - mv_top2_time));
+               mv_top2_alpha = max(0.2, 1 - (time - mv_top2_time) ** 2);
 
        void (vector, float, float, string, string, float, float) DrawItem;
 
index 641ca893ec68bc9fa85ad3559cf28e4f0e447eeb..9ebcffae3c8383657da46d4b571e24dfcdd92b2a 100644 (file)
@@ -580,7 +580,7 @@ void bot_calculate_stepheightvec()
        jumpstepheightvec = stepheightvec + jumpheight_vec * 0.85; // reduce it a bit to make the jumps easy
 }
 
-float bot_fixcount()
+bool bot_fixcount()
 {
        int activerealplayers = 0;
        int realplayers = 0;
index c4da14a4beeb29c7474c273879b34abc1c8411de..98b2ae3df78fb4d970ffd60528d65339b834f687 100644 (file)
@@ -88,7 +88,7 @@ int _content_type;
  */
 
 entity bot_spawn();
-float bot_fixcount();
+bool bot_fixcount();
 
 void bot_think(entity this);
 void bot_setnameandstuff(entity this);