aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
AgeCommit message (Collapse)Author
2016-01-18Show infotext with description for item entitiesRealBadAngel
2016-01-09New 3D Mode: PageflipDalai Felinto
The pageflip mode requires a stereo quadbuffer, and a modern graphic card. Patch tested with NVidia 3D Vision. The mini-map is not drawn, but that's what is done for topbottom and sidebyside modes as well. Also most of the time the user would prefer the HUD to be off. That's for the user to decide though, and toggle it manually. Finally, the interocular distance (aka eye separation) is twice as much as the "3d_paralax_strength" settings. I find this a strange design decision. I didn't want to chance this though, since it's how the other 3d modes interpret this settings.
2015-12-30Fix client crashing when connecting to serverest31
My commit e2d54c9f9275e4f77ec33be8054621d42945f7a4 "shutdown when requested from lua in singleplayer too" broke minetest's feature to connect to servers. The client crashed after the connection init was complete. Thanks to @sofar for reporting the bug. Fixes #3498.
2015-12-29shutdown when requested from lua in singleplayer tooest31
Before, minetest.request_shutdown didn't shut down singleplayer instances or server instances from the server tab. This commit fixes this. Fixes #3489.
2015-12-18Android: Implement Autohiding button bars to cleanup screenSapier
2015-12-17Android: Fix pressed buttons not beeing cleared on opening menuSapier
2015-12-02Add on_secondary_use when right clicking an item in the airAlex Ford
2015-11-15Add a status text for autorunAmaz
2015-11-07Add support for audio feedback if placing node failedBlockMen
2015-11-02Speed up saving of profiling data by 27xgregorycu
On Windows Release x64 bit build this changes: ProfilerGraph::put 1.68% -> 0.061% ProfilerGraph::draw 12% -> 17.% So yes, there is a tradeoff between saving profiling data (executed always) and drawing the profiler graph (executed very rarely). But usually you don't have the profiler graph open.
2015-10-29WoW-style AutorunDuane Robertson
This allows the player to toggle continuous forward with a key (F by default), so we don't have to hold down the forward key endlessly.
2015-10-24Fix on_rightclick() being called directly after placing nodeBlockMen
fixes https://github.com/minetest/minetest_game/issues/537
2015-10-18Remove wstrgettextest31
Everywhere where wstrgettext was used, its output was converted back to utf8. As wstrgettext internally converts the return value from utf8 to wstring, it has been a waste. Remove the function, and use strgettext instead.
2015-10-14Refactor loggingShadowNinja
- Add warning log level - Change debug_log_level setting to enumeration string - Map Irrlicht log events to MT log events - Encapsulate log_* functions and global variables into a class, Logger - Unify dstream with standard logging mechanism - Unify core.debug() with standard core.log() script API
2015-09-01Hide minimap if it has been disabled by serverest31
2015-08-25Change i++ to ++iDavid Jones
2015-08-13minimap: Add ability to disable from serverkwolekr
2015-08-13game.cpp: Update cached settingsest31
2015-07-23Optional reconnect functionalityest31
Enable the server to request the client to reconnect. This can be done with the now extended minetest.request_shutdown([reason], [reconnect]) setting.
2015-07-16Fix relief mapping issuesRealBadAngel
2015-07-14Make serialization error message translatableKahrl
Also don't show "probably running a different version" message in simple singleplayer mode
2015-07-09Settings: pass name to callbacks by referenceest31
Spare some copies.
2015-07-08Use UTF-8 instead of narrowest31
Use wide_to_utf8 and utf8_to_wide instead of wide_to_narrow and narrow_to_wide at almost all places. Only exceptions: test functions for narrow conversion, and chat, which is done in a separate commit.
2015-07-08Clean-up Minimap codekwolekr
- Fixed race conditions - Fixed null dereference - Fixed out-of-bounds array access - MinimapMapblock is now allocated and added to update queue only when enabled - Removed dependency on LocalPlayer - Fixed code style - Simplified expressions and program logic - Cleaned minimap object interfaces
2015-06-27Add minimap featureRealBadAngel
2015-06-20Make attached objects visible in 3rd person viewest31
2015-06-13Use utf-8 in formspecsIlya Zhuravlev
2015-05-29(Android) Only simulate holding down fast key if fast_move is toggled to trueCraig Robbins
2015-05-19Replace instances of std::map<std::string, std::string> with StringMapkwolekr
Also, clean up surrounding code style Replace by-value parameter passing with const refs when possible Fix post-increment of iterators
2015-05-15ANDROID: Do not limit situations where fast is enabledCraig Robbins
Before this commit autofast for Android was ignored if the user was sneaking, digging or building. There is no reason for this and it impedes movement control
2015-05-06Fix connection speed unit namesShadowNinja
2015-04-27Revert the upper-case PROJECT_NAME nonsense that was part of #2402sfan5
2015-04-26Fix player pitch and yaw not being set properlyKevin Ott
2015-04-19Disable connection timeout for singleplayer and server tabsest31
In worlds with many mods we can easily reach timeout, waiting for the server to start.
2015-04-1710s timeout when connecting to serverSmallJoker
2015-03-31Move texture_min_size even further down the pipe. Now, textures are ↵Aaron Suen
JIT-upscaled using an image transformation, right at the time they're added to a mesh or particle; images used in 2D elements are left unscaled. This should fix any remaining issues with HUD elements.
2015-03-30On Android enable always fastCraig Robbins
Invert the meaning of holding down the fast button (i.e. holding down the fast button -- if there is one -- means walk), unless performing an action, sneaking or jumping. Still requires fast move to be toggled on (and fast priv)
2015-03-27Change error_message from wstring to stringShadowNinja
This removes a lot of narrow/wide conversions where a wide string was never used.
2015-03-27Clean up and tweak build systemShadowNinja
* Combine client and server man pages. * Update unit test options and available databases in man page. * Add `--worldname` to man page. * Fix a bunch of places where `"Minetest"` was used directly instead of `PROJECT_NAME`. * Disable server build by default on all operating systems. * Make `ENABLE_FREETYPE` not fail if FreeType isn't found. * Enable LevelDB, Redis, and FreeType detection by default. * Remove the `VERSION_PATCH_ORIG` hack. * Add option to search for and use system JSONCPP. * Remove broken LuaJIT version detection. * Rename `DISABLE_LUAJIT` to `ENABLE_LUAJIT`. * Rename `minetest_*` variables in `version.{h,cpp}` to `g_*`. * Clean up style of CMake files.
2015-03-17Minor cleanup: game.cppCraig Robbins
* Sort includes * Remove unnecessary includes * Ensure the parameter name for GameRunData is consistent for class member functions
2015-03-15Finer progress bar updates when initializing nodesest31
The bar is only drawn when the user will notice a change, which prevents time overheads that this commit would cause, resulting from useless draws.
2015-03-07For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins
NDEBUG is defined), replace those usages with persistent alternatives
2015-03-07Fix Android text bug (no text displaying)Craig Robbins
2015-03-05ProfilerGraph: Use std::list instead of std::vectorLoic Blot
2015-03-05Replace std::list to std::vector into tile.cpp (m_texture_trash) and move ↵Loic Blot
tile.hpp to src/client/
2015-02-25Add camera smoothing and cinematic mode (F8)rubenwardy
2015-02-18Use fixed size for builtin menus on non-android platformsPerttu Ahola
2015-02-17Add player direction to on-screen debug textYaman
(PR Modified slightly)
2015-02-12Minor fixes in translationsngosang
2015-02-11Don't permit to open inventory is playerCAO isn't present. This prevent to ↵Loic Blot
open an empty inventory at player load. ok @zeno-