summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-11 16:43:26 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-11 16:43:26 +0200
commit804b2647ced20b8af1e632f1e99d54f905fa8ce0 (patch)
treec60db21bf4394434424993711669253ee9f6aae2 /src/main.cpp
parent841ac10e5c20ad152f375f43bceb992fc3945041 (diff)
downloadminetest-804b2647ced20b8af1e632f1e99d54f905fa8ce0.tar.gz
minetest-804b2647ced20b8af1e632f1e99d54f905fa8ce0.tar.bz2
minetest-804b2647ced20b8af1e632f1e99d54f905fa8ce0.zip
new texture stuff quite working
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 1a576b28d..105acedf7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -267,9 +267,15 @@ Doing now (most important at the top):
# maybe done
* not done
-=== Stuff being done
+=== Immediate stuff
* Combine meshes to bigger ones in ClientMap and set them EHM_STATIC
+=== Making it more portable
+* MinGW: Switch away from swprintf; mingw has a bad version of it.
+ Use snprintf + narrow_to_wide or (w)ostringstream
+* Some MSVC: std::sto* are defined without a namespace and collide
+ with the ones in utility.h
+
=== Stuff to do before release
* Save the new mapgen stuff
- map/meta.txt, which should contain only plain text, something like this:
@@ -331,12 +337,12 @@ Doing now (most important at the top):
#endif
#ifdef _MSC_VER
-#pragma comment(lib, "Irrlicht.lib")
-//#pragma comment(lib, "jthread.lib")
-#pragma comment(lib, "zlibwapi.lib")
-#pragma comment(lib, "Shell32.lib")
-// This would get rid of the console window
-//#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
+ #pragma comment(lib, "Irrlicht.lib")
+ //#pragma comment(lib, "jthread.lib")
+ #pragma comment(lib, "zlibwapi.lib")
+ #pragma comment(lib, "Shell32.lib")
+ // This would get rid of the console window
+ //#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
#endif
#include <iostream>
@@ -1548,9 +1554,8 @@ int main(int argc, char *argv[])
These are needed for unit tests at least.
*/
- IIrrlichtWrapper irrlicht_dummy;
-
- init_mapnode(&irrlicht_dummy);
+ // Initial call with g_texturesource not set.
+ init_mapnode();
/*
Run unit tests
@@ -1716,7 +1721,7 @@ int main(int argc, char *argv[])
*/
init_content_inventory_texture_paths();
- init_mapnode(g_irrlicht);
+ init_mapnode(); // Second call with g_texturesource set
init_mineral(g_irrlicht);
/*