aboutsummaryrefslogtreecommitdiff
path: root/src/mapblock.cpp
Commit message (Collapse)AuthorAge
* Remove most exceptions from getNode() (and variants)Craig Robbins2014-11-14
|
* Speedup getBlockNodeIdMapping by up to factor 4 by using a fixed size ↵sapier2014-06-23
| | | | mapping array
* Remove liquid_finite and weatherproller2014-04-18
|
* Cleanup jthread and fix win32 buildsapier2013-12-01
|
* Actually fix weatherkwolekr2013-11-17
| | | | The real problem was that MapBlocks were not activated before getting sent to the client
* Weather: Clean up getHeat/getHumidity somewhatkwolekr2013-09-16
|
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
|
* Weather backward compatibilityproller2013-08-02
|
* Fix warnings in mapblock.cppPilzAdam2013-07-28
|
* Weather supportproller2013-07-27
|
* Migrate to STL containers/algorithms.Ilya Zhuravlev2013-03-11
|
* Update Copyright YearsSfan52013-02-24
|
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
|
* Move util/serialize.h out from staticobject.h for smaller header dependenciesPerttu Ahola2012-11-26
|
* Reorganize ClientMap rendering code for a bit more performancePerttu Ahola2012-09-04
| | | | | - Don't select blocks for drawing in every frame - Sort meshbuffers by material before drawing
* Improve node timer format (map format version 25) and update mapformat.txtPerttu Ahola2012-07-24
|
* Fix map deserialization and remove old serialization codePerttu Ahola2012-07-23
|
* Increase node id/param0 to 16 bits, leaving param2 always with 8 bitsdarkrose2012-07-23
|
* Implement node timersdarkrose2012-07-23
|
* Properly and efficiently use split utility headersPerttu Ahola2012-06-17
|
* Update and fix doc/mapformat.txt; make current format more solid in mapblock.cppPerttu Ahola2012-06-08
|
* Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola2012-06-05
| | | | GPLv2/later, by agreement of major contributors
* Add ignore_world_load_errors configuration option and provide better error ↵Perttu Ahola2012-06-04
| | | | messages
* WIP node metadata, node timersKahrl2012-06-03
|
* Reduce EnvRef:set_node() time tenfold by postponing the dayNightDiff update ↵Perttu Ahola2012-03-29
| | | | until it is actually needed
* MapBlockMesh, mesh animation system, urgent mesh updates, athmospheric ↵Kahrl2012-03-15
| | | | light, removed footprints
* Cleanup (some stuff went wrong when reverting 4-byte mapnodes); fix ↵Kahrl2012-01-22
| | | | legacy_wallmounted
* Node placement / mineral / serialization / iron freq / node_dig callbackKahrl2012-01-22
| | | | | | | | - Node placement code moved to Lua - Mineral system removed (added default:stone_with_coal and default:stone_with_iron). - MapBlock and MapNode serialization updated. - Mapgen: Frequency of iron increased. - node_dig callback and related changes.
* The huge item definition and item namespace unification patch (itemdef), see ↵Kahrl2012-01-12
| | | | http://c55.me/minetest/wiki/doku.php?id=changes:itemdef
* Replace old active block random node modifying things with actual ↵Perttu Ahola2011-11-29
| | | | ActiveBlockModifiers
* Add reason parameter to setModified and print it out to verbosestream when ↵Perttu Ahola2011-11-29
| | | | saving block
* Do not expose CONTENT_* stuff in content_mapnode.h and use a name converter ↵Perttu Ahola2011-11-29
| | | | wrapper in old code
* Node definition namesPerttu Ahola2011-11-29
|
* Remove content dependencies from mapblock.cppPerttu Ahola2011-11-29
|
* GameDef compilesPerttu Ahola2011-11-29
|
* Create framework for getting rid of global definitions of ↵Perttu Ahola2011-11-29
| | | | node/tool/item/whatever types
* Allocate MapBlock::m_node_metadata on heap to allow less header bloatPerttu Ahola2011-11-29
|
* Move ContentFeatures to mapnode_contentfeatures.{h,cpp} and clean stuffPerttu Ahola2011-11-29
|
* mobv2Perttu Ahola2011-10-15
|
* Saner block modification flag operation for not saving everything alwaysPerttu Ahola2011-10-12
|
* fix server buildPerttu Ahola2011-07-25
|
* Added a mapblock analyzing function for debugging use and fixed remaining ↵Perttu Ahola2011-07-24
| | | | mapgen bugs
* merged fix to decapitated trees; other bugs now existsPerttu Ahola2011-07-24
|\
| * Attempt to fix the big bug. Now server either stops sending map or mapgen ↵Perttu Ahola2011-07-21
| | | | | | | | starts generating CONTENT_IGNORE.
* | extended content-type rangePerttu Ahola2011-07-23
|/
* initial steps in doing content type extensionPerttu Ahola2011-07-02
|
* fixed block unloading from memory (a better fix coming next)Perttu Ahola2011-06-26
|
* more reorganizing of map codePerttu Ahola2011-06-26
|
* New map generator added (and SQLite, messed up the commits at that time...) ↵Perttu Ahola2011-06-25
| | | | (import from temporary git repo)
* Changed MapBlockObjects to be never written anymore. Incremented version number.Perttu Ahola2011-06-18
|
l com">/** users may start by short name in commandline without extention **/ std::string appname = argv[0]; if (appname.substr(appname.length() - 4) != ".exe") { appname += ".exe"; } if (!CreateProcess(appname.c_str(), (char*) ptr_parameters, NULL, NULL, false, DETACHED_PROCESS | CREATE_UNICODE_ENVIRONMENT, NULL, NULL, &startupinfo, &processinfo)) { char buffer[1024]; FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL,SUBLANG_DEFAULT), buffer, sizeof(buffer)-1, NULL); errorstream << "*******************************************************" << std::endl; errorstream << "CMD: " << appname << std::endl; errorstream << "Failed to restart with current locale: " << std::endl; errorstream << buffer; errorstream << "Expect language to be broken!" << std::endl; errorstream << "*******************************************************" << std::endl; } else { exit(0); } #else errorstream << "*******************************************************" << std::endl; errorstream << "Can't apply locale workaround for server!" << std::endl; errorstream << "Expect language to be broken!" << std::endl; errorstream << "*******************************************************" << std::endl; #endif } setlocale(LC_ALL,configured_language.c_str()); #else // Mingw char *lang_str = (char*)calloc(10 + configured_language.length(), sizeof(char)); strcat(lang_str, "LANGUAGE="); strcat(lang_str, configured_language.c_str()); putenv(lang_str); setlocale(LC_ALL, ""); #endif // ifndef _WIN32 } else { /* set current system default locale */ setlocale(LC_ALL, ""); } #if defined(_WIN32) if (getenv("LANGUAGE") != 0) { setlocale(LC_ALL, getenv("LANGUAGE")); } #ifdef _MSC_VER else if (getenv("LANG") != 0) { setlocale(LC_ALL, getenv("LANG")); } #endif #endif static std::string name = lowercase(PROJECT_NAME); bindtextdomain(name.c_str(), path); textdomain(name.c_str()); #if defined(_WIN32) // Set character encoding for Win32 char *tdomain = textdomain( (char *) NULL ); if( tdomain == NULL ) { errorstream << "Warning: domainname parameter is the null pointer" << ", default domain is not set" << std::endl; tdomain = (char *) "messages"; } /* char *codeset = */bind_textdomain_codeset( tdomain, "UTF-8" ); //errorstream << "Gettext debug: domainname = " << tdomain << "; codeset = "<< codeset << std::endl; #endif // defined(_WIN32) #else /* set current system default locale */ setlocale(LC_ALL, ""); #endif // if USE_GETTEXT /* no matter what locale is used we need number format to be "C" */ /* to ensure formspec parameters are evaluated correct! */ setlocale(LC_NUMERIC, "C"); infostream << "Message locale is now set to: " << setlocale(LC_ALL, 0) << std::endl; }