Fix --color command line parameter ignorance (#7173)
[oweals/minetest.git] / src / hud.cpp
index 0d2d092a7930f6d94213ce8b926d5ba2f24c0b59..8ada65274730805a4ee49319077c4ffcb341cd42 100644 (file)
@@ -1,5 +1,24 @@
-#include "hud.h"
+/*
+Minetest
+Copyright (C) 2010-2018 celeron55, Perttu Ahola <celeron55@gmail.com>
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2.1 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Lesser General Public License for more details.
 
+You should have received a copy of the GNU Lesser General Public License along
+with this program; if not, write to the Free Software Foundation, Inc.,
+51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+*/
+
+#include "hud.h"
+#include <cmath>
 
 const struct EnumString es_HudElementType[] =
 {
@@ -29,11 +48,12 @@ const struct EnumString es_HudElementStat[] =
 
 const struct EnumString es_HudBuiltinElement[] =
 {
-       {HUD_FLAG_HOTBAR_VISIBLE,    "hotbar"},
-       {HUD_FLAG_HEALTHBAR_VISIBLE, "healthbar"},
-       {HUD_FLAG_CROSSHAIR_VISIBLE, "crosshair"},
-       {HUD_FLAG_WIELDITEM_VISIBLE, "wielditem"},
-       {HUD_FLAG_BREATHBAR_VISIBLE, "breathbar"},
-       {HUD_FLAG_MINIMAP_VISIBLE,   "minimap"},
+       {HUD_FLAG_HOTBAR_VISIBLE,        "hotbar"},
+       {HUD_FLAG_HEALTHBAR_VISIBLE,     "healthbar"},
+       {HUD_FLAG_CROSSHAIR_VISIBLE,     "crosshair"},
+       {HUD_FLAG_WIELDITEM_VISIBLE,     "wielditem"},
+       {HUD_FLAG_BREATHBAR_VISIBLE,     "breathbar"},
+       {HUD_FLAG_MINIMAP_VISIBLE,       "minimap"},
+       {HUD_FLAG_MINIMAP_RADAR_VISIBLE, "minimap_radar"},
        {0, NULL},
 };