summaryrefslogtreecommitdiffstats
path: root/pacman-c++
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-05-12 18:07:31 +0200
committermanuel <manuel@mausz.at>2011-05-12 18:07:31 +0200
commitb0d63dc95ab5ed4496e0c4b888af06edace456d4 (patch)
treede781901dd013bea2b65ca22b157ac239664def9 /pacman-c++
parent4b555b550f2b140d03fbffe56064a894ad7a43f1 (diff)
downloadfoop-b0d63dc95ab5ed4496e0c4b888af06edace456d4.tar.gz
foop-b0d63dc95ab5ed4496e0c4b888af06edace456d4.tar.bz2
foop-b0d63dc95ab5ed4496e0c4b888af06edace456d4.zip
- fix protoc call on osx (that's the correct way now anyway)
- fix compiler warning
Diffstat (limited to 'pacman-c++')
-rw-r--r--pacman-c++/proto/protobuf.pri3
-rw-r--r--pacman-c++/server/server.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/pacman-c++/proto/protobuf.pri b/pacman-c++/proto/protobuf.pri
index 718cb70..38fccde 100644
--- a/pacman-c++/proto/protobuf.pri
+++ b/pacman-c++/proto/protobuf.pri
@@ -16,11 +16,12 @@
16PROTOPATH += . 16PROTOPATH += .
17PROTOPATHS = 17PROTOPATHS =
18for(p, PROTOPATH):PROTOPATHS += --proto_path=$${p} 18for(p, PROTOPATH):PROTOPATHS += --proto_path=$${p}
19PROTOPATHS += $$join(INCLUDEPATH, " -I", "-I")
19 20
20protobuf_decl.name = protobuf header 21protobuf_decl.name = protobuf header
21protobuf_decl.input = PROTOS 22protobuf_decl.input = PROTOS
22protobuf_decl.output = ${QMAKE_FILE_BASE}.pb.h 23protobuf_decl.output = ${QMAKE_FILE_BASE}.pb.h
23protobuf_decl.commands = protoc --cpp_out="." $${PROTOPATHS} $(INCPATH) ${QMAKE_FILE_IN} 24protobuf_decl.commands = protoc --cpp_out="." $${PROTOPATHS} -I ${QMAKE_FILE_IN_PATH} ${QMAKE_FILE_IN}
24protobuf_decl.variable_out = GENERATED_FILES 25protobuf_decl.variable_out = GENERATED_FILES
25QMAKE_EXTRA_COMPILERS += protobuf_decl 26QMAKE_EXTRA_COMPILERS += protobuf_decl
26 27
diff --git a/pacman-c++/server/server.cpp b/pacman-c++/server/server.cpp
index 316b719..a39d975 100644
--- a/pacman-c++/server/server.cpp
+++ b/pacman-c++/server/server.cpp
@@ -14,7 +14,8 @@ Server::Server(QWidget *parent)
14 m_rounds(3), m_curRound(0), m_running(false), m_finishRound(false) 14 m_rounds(3), m_curRound(0), m_running(false), m_finishRound(false)
15{ 15{
16 /* determine max players by using order array */ 16 /* determine max players by using order array */
17 for(m_maxplayers = 0; Color::order[m_maxplayers] != Color::none; ++m_maxplayers); 17 for(m_maxplayers = 0; Color::order[m_maxplayers] != Color::none; ++m_maxplayers)
18 {};
18} 19}
19 20
20Server::~Server() 21Server::~Server()