Use HW_TEAMCOLOR_ARRAY from frontlib flibqtfrontend
authorunc0rr
Fri, 30 Nov 2012 12:12:49 +0400
branchflibqtfrontend
changeset 8139 5c38fe3afce4
parent 8137 adb1de7a3cd9
child 8141 6482875b0d97
Use HW_TEAMCOLOR_ARRAY from frontlib
QTfrontend/hwconsts.cpp.in
--- a/QTfrontend/hwconsts.cpp.in	Fri Nov 30 11:40:37 2012 +0400
+++ b/QTfrontend/hwconsts.cpp.in	Fri Nov 30 12:12:49 2012 +0400
@@ -19,6 +19,7 @@
 #include <QStandardItemModel>
 
 #include "hwconsts.h"
+#include "frontlib.h"
 
 QString * cProtoVer = new QString("${HEDGEWARS_PROTO_VER}");
 QString * cDataDir = new QString("${HEDGEWARS_DATADIR}");
@@ -62,7 +63,11 @@
             AMMOLINE_PORTALS_DELAY AMMOLINE_PORTALS_CRATE ))
         ;
 
-unsigned int colors[] = HW_TEAMCOLOR_ARRAY;
+#ifndef UINT32_C
+#define UINT32_C
+#endif
+
+quint32 colors[] = HW_TEAMCOLOR_ARRAY;
 
 QString * netHost = new QString();
 quint16 netPort = NETGAME_DEFAULT_PORT;