diff options
| author | manuel <manuel@mausz.at> | 2011-05-11 01:36:49 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-05-11 01:36:49 +0200 |
| commit | 535c342a2f28e0a1e90010b2f0ff4018eeeb200a (patch) | |
| tree | f102207b7889457332e75774ace07188d143f42a /pacman-c++ | |
| parent | 1a6c940ed9d7f6136da0e13148314072665342c5 (diff) | |
| download | foop-535c342a2f28e0a1e90010b2f0ff4018eeeb200a.tar.gz foop-535c342a2f28e0a1e90010b2f0ff4018eeeb200a.tar.bz2 foop-535c342a2f28e0a1e90010b2f0ff4018eeeb200a.zip | |
fix windows build
Diffstat (limited to 'pacman-c++')
| -rw-r--r-- | pacman-c++/client/client.cpp | 4 | ||||
| -rw-r--r-- | pacman-c++/common/common.pro | 1 | ||||
| -rw-r--r-- | pacman-c++/common/constants.cpp | 3 | ||||
| -rw-r--r-- | pacman-c++/server/server.cpp | 4 |
4 files changed, 8 insertions, 4 deletions
diff --git a/pacman-c++/client/client.cpp b/pacman-c++/client/client.cpp index da505d1..a00249b 100644 --- a/pacman-c++/client/client.cpp +++ b/pacman-c++/client/client.cpp | |||
| @@ -249,10 +249,10 @@ void Client::onAcceptConnectDialog() | |||
| 249 | m_mainWidget->doConnect(address, port); | 249 | m_mainWidget->doConnect(address, port); |
| 250 | } | 250 | } |
| 251 | 251 | ||
| 252 | bool Constants::server = false; | ||
| 253 | |||
| 254 | int main(int argc, char **argv) | 252 | int main(int argc, char **argv) |
| 255 | { | 253 | { |
| 254 | Constants::server = false; | ||
| 255 | |||
| 256 | /* Verify that the version of the library that we linked against is | 256 | /* Verify that the version of the library that we linked against is |
| 257 | * compatible with the version of the headers we compiled against. | 257 | * compatible with the version of the headers we compiled against. |
| 258 | */ | 258 | */ |
diff --git a/pacman-c++/common/common.pro b/pacman-c++/common/common.pro index e7e415e..1114e17 100644 --- a/pacman-c++/common/common.pro +++ b/pacman-c++/common/common.pro | |||
| @@ -9,6 +9,7 @@ SOURCES += pixmapitem.cpp \ | |||
| 9 | actor.cpp \ | 9 | actor.cpp \ |
| 10 | block.cpp \ | 10 | block.cpp \ |
| 11 | bonuspoint.cpp \ | 11 | bonuspoint.cpp \ |
| 12 | constants.cpp \ | ||
| 12 | point.cpp \ | 13 | point.cpp \ |
| 13 | audio.cpp \ | 14 | audio.cpp \ |
| 14 | sceneholder.cpp \ | 15 | sceneholder.cpp \ |
diff --git a/pacman-c++/common/constants.cpp b/pacman-c++/common/constants.cpp new file mode 100644 index 0000000..6bf9eb5 --- /dev/null +++ b/pacman-c++/common/constants.cpp | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #include "constants.h" | ||
| 2 | |||
| 3 | bool Constants::server = false; | ||
diff --git a/pacman-c++/server/server.cpp b/pacman-c++/server/server.cpp index f9502ba..877c4a6 100644 --- a/pacman-c++/server/server.cpp +++ b/pacman-c++/server/server.cpp | |||
| @@ -940,10 +940,10 @@ bool operator<(const QPoint& lhs, const QPoint& rhs) | |||
| 940 | return false; | 940 | return false; |
| 941 | } | 941 | } |
| 942 | 942 | ||
| 943 | bool Constants::server = true; | ||
| 944 | |||
| 945 | int main(int argc, char **argv) | 943 | int main(int argc, char **argv) |
| 946 | { | 944 | { |
| 945 | Constants::server = true; | ||
| 946 | |||
| 947 | /* Verify that the version of the library that we linked against is | 947 | /* Verify that the version of the library that we linked against is |
| 948 | * compatible with the version of the headers we compiled against. | 948 | * compatible with the version of the headers we compiled against. |
| 949 | */ | 949 | */ |
