Skip to content

Commit

Permalink
Added serveraddress=localhost when DEBUG is defined, incremented version
Browse files Browse the repository at this point in the history
  • Loading branch information
kroyee committed Jul 21, 2017
1 parent 54a13be commit 2659878
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Expand Up @@ -9,8 +9,8 @@
using std::cout;
using std::endl;

#define CLIENT_VERSION 6
//#define DEBUG_SIZE
#define CLIENT_VERSION 7
//#define DEBUG

int main()
{
Expand All @@ -23,7 +23,7 @@ int main()

sf::RenderWindow window;

#ifndef DEBUG_SIZE
#ifndef DEBUG
if (resources.options.fullscreen)
window.create(resources.options.modes[resources.options.currentmode], "SpeedBlocks", sf::Style::Fullscreen);
if (!window.isOpen()) {
Expand Down
8 changes: 7 additions & 1 deletion src/resources/network.cpp
Expand Up @@ -5,7 +5,13 @@
using std::cout;
using std::endl;

network::network() : serverAdd("localhost"), tcpPort(21512), udpPort(21514) {
#ifndef DEBUG
#define ADDRESS 82.102.5.7
#else
#define ADRESSS localhost
#endif

network::network() : serverAdd("ADDRESS"), tcpPort(21512), udpPort(21514) {
tcpSock.setBlocking(false);
udpSock.setBlocking(false);
curl_global_init(CURL_GLOBAL_ALL);
Expand Down

0 comments on commit 2659878

Please sign in to comment.