summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-08 11:24:07 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-08 11:24:07 +0200
commitb0971f4459fd37813dd4779f2ddaf9b38cf5f776 (patch)
tree3a839ab26708e7891a32f5125bb2fdde47cc2ae3 /src/main.cpp
parent15f27a19378345c22b07e37ab324581d55ad9c5b (diff)
downloadminetest-b0971f4459fd37813dd4779f2ddaf9b38cf5f776.tar.gz
minetest-b0971f4459fd37813dd4779f2ddaf9b38cf5f776.tar.bz2
minetest-b0971f4459fd37813dd4779f2ddaf9b38cf5f776.zip
local game connects to 127.0.0.1 instead of localhost (windows returns an ipv6 address sometimes which is not supported)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e1d8492fd..74c93a707 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -116,8 +116,6 @@ FIXME: Some network errors on Windows that cause local game to not work
- See siggjen's emails.
- Is this the famous "windows 7 problem"?
- Apparently there might be other errors too
- - There is some problem with the menu system, something like the
- .Parent of guiPauseMenu to end up being 0xfeeefeee
Networking and serialization:
-----------------------------
@@ -1626,8 +1624,8 @@ int main(int argc, char *argv[])
video::E_DRIVER_TYPE driverType;
#ifdef _WIN32
- //driverType = video::EDT_DIRECT3D9;
- driverType = video::EDT_OPENGL;
+ driverType = video::EDT_DIRECT3D9;
+ //driverType = video::EDT_OPENGL;
#else
driverType = video::EDT_OPENGL;
//driverType = video::EDT_BURNINGSVIDEO; // Best software renderer
@@ -1914,7 +1912,8 @@ int main(int argc, char *argv[])
Address connect_address(0,0,0,0, port);
try{
if(address == "")
- connect_address.Resolve("localhost");
+ //connect_address.Resolve("localhost");
+ connect_address.setAddress(127,0,0,1);
else
connect_address.Resolve(address.c_str());
}