aboutsummaryrefslogtreecommitdiff
path: root/src/constants.h
AgeCommit message (Collapse)Author
2022-01-30Raise max mapgen limit constant to align with mapblock sizesfan5
2022-01-08Fully remove bitmap font support (#11863)sfan5
Freetype is now a build requirement.
2021-01-27Consistently use "health points" (#10868)Zughy
2020-04-28Fix breath_bar scaling; delay breath_bar hiding by one second (#8271)ANAND
PLAYER_MAX_BREATH_DEFAULT was earlier set to 11, so that 10 bubbles are shown before the breath bar disappears. Now, PLAYER_MAX_BREATH_DEFAULT is set to 10, and the breath_bar scaling code in builtin has been tweaked to show all 10 bubbles before hiding the breath_bar
2020-04-11Implement DPI scaling for Windows (#9586)sfan5
2019-10-24Change some rough/inappropriate language in comments (#9061)random-geek
2017-09-15Customizeable max breath for players (#6411)SmallJoker
* Customizeable maximal breath for players
2017-08-23Respect object property hp_max field for players (#6287)SmallJoker
* Respect object property hp_max field for players This allows modders to configure the maximal HP per player * Statbars: Downscale bar to full 20 HP when exceeding this value Add default max HP for players and breath constants to builtin Document the constants * Rename PLAYER_MAX_HP -> PLAYER_MAX_HP_DEFAULT
2017-08-20Change BS constant from implicit double to float (#6286)Jens Rottmann
the BS constant implicitly promotes all position calculations it is used in to double even though positions (= v3f) are only meant to be floats. There are many, many similar occurrences everywhere, but I'm not willing to hunt down all; I only fixed the little part I'm already familiar with.
2017-08-17C++ modernize: Pragma once (#6264)Loïc Blot
* Migrate cpp headers to pragma once
2017-08-09Step height: Add as a player object propertyparamat
Add settable player step height using the existing object property. Breaks compatibility with old clients, add to protocol version 35.
2017-05-09Revert custom player collision box and step height commitsparamat
These caused inability to pass through 2 node high spaces or step up onto slabs or steps when a new client connected to an older server.
2017-05-06Use stepheight from CAO instead of hardcoded valueSapier
2017-04-23Pass clang-format on various cpp/header files (#5559)Loïc Blot
2016-09-21Increase default font size by 1James Stevenson
2015-08-02Add map limit config optionrubenwardy
2015-03-31Change format of screenshot namesCraig Robbins
Filename screenshot_ + ISO 8601 format + [-serial] i.e. screenshot_YYYY-MM-DDTHH::MM::SS[-serial].png Serial is added if the filename + timestamp already exists and is in the range 1 to 999
2015-02-18Increase default font_sizeBlockMen
2015-02-18Fix font_size under windowsBlockMen
2015-02-05Give full breath after deathSmallJoker
2015-01-10Change default font sizes to 14(freetype) and 10(non-freetype)sfan5
2014-12-05(INTERIM) Make sizes of the font in formspecs consistent and not so largeCraig Robbins
Until a permanent fix can be developed
2014-11-30Scale form elements consistentlyZefram
The ratios between the sizes of form elements, including text, is now fixed, aside from variations caused by rounding. This makes form layout almost fully predictable, and particularly independent of player's screen size. The proportions of non-text elements are the traditional proportions. For compatibility, the way in which element positions and sizes are specified remains unchanged, in all its baroqueness, with one exception. The exception is that the position of a label[] element is now defined in terms of the vertically center of the first line of the label, rather than the bottom of the first line of the label. This change allows a label to be precisely aligned with button text or an edit box, which are positioned in a centering manner. Label positioning remains consistent with the previous system, just more precisely defined. Make multi-line label[] elements work properly. Previously the code set a bounding rectangle assuming that there would be only a single line, and as a result a multi-line label would be cut somewhere in the middle of the second line. Now multi-line labels not only work, but have guaranteed line spacing relative to inventory slots, to aid alignment. Incidentally fix tabheader[] elements which were being constrained to the wrong width. Given an unusually large form, in variable-size mode, the form rendering system now chooses a scale that will fit the entire form on the screen, if that doesn't make elements too small. Fixed-size forms, including the main menu, are have their sizes fixed in inch terms. The fixed size for fixed-size forms and the preferred and minimum sizes for variable-size forms all scale according to the gui_scaling parameter.
2014-11-30Implement proper font handlingsapier
2014-08-22Improve timeout calculationsapier
gf
2014-06-23Store the maximum player file tries in a constantShadowNinja
2014-06-22Support for scalable font and gui elementssapier
Fix positioning of tabheader in order to be usable for scaling GUIs WARNING: this changes position of current tabheaders, mods have to adjust!
2014-04-18Remove liquid_finite and weatherproller
2013-09-16Weather: Clean up getHeat/getHumidity somewhatkwolekr
2013-08-14Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl
2013-06-23Add support for IPv6proller
Two new configuration options are added: - "enable_ipv6" to enable/disable the overall use of IPv6 - "ipv6_server" to enable/disable the use of IPv6 sockets when running a server (when "enable_ipv6" is enabled)
2013-02-24Update Copyright YearsSfan5
2013-02-24Change Minetest-c55 to MinetestPilzAdam
2012-06-17Properly and efficiently use split utility headersPerttu Ahola
2012-06-17Initially split utility.h to multiple files in util/Perttu Ahola
2012-06-16Clean up constants.h a bitPerttu Ahola
2012-06-05Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola
GPLv2/later, by agreement of major contributors
2012-03-29added PlayerSAO and RemotePlayer, removed ServerRemotePlayerKahrl
2011-11-29Set the BS constant to be floating-point; this removes the need for floating ↵Perttu Ahola
point numbers when dividing it
2011-09-08Collected and moved existing camera infrastructure from game.cpp to ↵Kahrl
camera.cpp and camera.h. Introduced configuration settings 'fov' which chooses the camera's (vertical) field of view and 'view_bobbing' which currently does nothing. Other code refactored to not expect the FOV to be a build time constant.
2011-08-15lava!Perttu Ahola
2011-08-12fixed not finding data dir if installedConstantin Wenger
2011-05-18small comment updatePerttu Ahola
2011-03-02mapgen work-in-progressPerttu Ahola
2011-02-05mapgen stuffPerttu Ahola
2011-01-30map generation framework under development... not quite operational at this ↵Perttu Ahola
point.
2011-01-24Mainly some texture tweakingPerttu Ahola
2011-01-17minecraft-style water done (but no texture animation or sound)Perttu Ahola
2011-01-17old water removed, some fixes here and therePerttu Ahola
2011-01-16Initial commit of mapgen v.2. Lacks configuration and saving to disk.Perttu Ahola