diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-15 23:35:32 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-15 23:35:32 +0300 |
commit | a7d36a50bb330d4423d3a8dd0177a3da20d5e8f9 (patch) | |
tree | 62af8d68b2059fb1c36f2382d8f47e2305d8ef8d /src | |
parent | e20dbbf6eefa8b4eb80acebc54b36ef21a98fdc4 (diff) | |
download | minetest-a7d36a50bb330d4423d3a8dd0177a3da20d5e8f9.tar.gz minetest-a7d36a50bb330d4423d3a8dd0177a3da20d5e8f9.tar.bz2 minetest-a7d36a50bb330d4423d3a8dd0177a3da20d5e8f9.zip |
Menu will now ignore an invalid port or the port 0.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 117670366..bf5f3182b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -121,6 +121,11 @@ Game content: are possible.
- Keys to chests?
+- The Treasure Guard; a big monster with a hammer
+ - The hammer does great damage, shakes the ground and removes a block
+ - You can drop on top of it, and have some time to attack there
+ before he shakes you off
+
Documentation:
--------------
@@ -1990,7 +1995,10 @@ int main(int argc, char *argv[]) playername = wide_to_narrow(menudata.name);
address = wide_to_narrow(menudata.address);
- port = stoi(wide_to_narrow(menudata.port));
+ int newport = stoi(wide_to_narrow(menudata.port));
+ if(newport != 0)
+ port = newport;
+ //port = stoi(wide_to_narrow(menudata.port));
g_settings.set("creative_mode", itos(menudata.creative_mode));
// Check for valid parameters, restart menu if invalid.
|