aboutsummaryrefslogtreecommitdiff
path: root/src/content
Commit message (Expand)AuthorAge
* Mods: Combine mod loading checks and deprection logging (#11503)SmallJoker2021-07-31
* Deprecate not providing mod.confrubenwardy2021-02-24
* Settings: Proper priority hierarchySmallJoker2021-01-29
* Prevent games from setting secure settings (#10460)rubenwardy2020-10-06
* Remove unused functions reported by cppcheck (#10463)SmallJoker2020-10-05
* Sanitize world directory names on create. Keep original name separate (#9432)Hugues Ross2020-07-28
* Value copy / allocation optimizations mostly in server, SAO and serialize codesfan52020-05-27
* Overall improvements to log messages (#9598)sfan52020-04-08
* Settings: Fix game minetest.conf flags overriding defaults (#9404)SmallJoker2020-02-17
* Optimize string handling in path search (#8098)Jozef Behran2019-03-07
* Optimize subgames search a little bit (#8096)Jozef Behran2019-01-18
* world.mt: Only accept true/false/nil values (#8055)SmallJoker2019-01-13
* Make sqlite3 the default auth backend (#8085)Paul Ouellette2019-01-10
* Deprecate modpack.txt and use modpack.conf instead (#7892)rubenwardy2019-01-06
* Add protocol_version and supported package types to ContentDB urlsrubenwardy2018-07-29
* Update to new ContentDB APIrubenwardy2018-06-18
* Add updating to online content browserrubenwardy2018-05-16
* Add online content repositoryrubenwardy2018-04-19
"hl opt">*light_decode_table; // 0 <= light <= LIGHT_SUN // 0 <= return value <= 255 inline u8 decode_light(u8 light) { // assert(light <= LIGHT_SUN); if (light > LIGHT_SUN) light = LIGHT_SUN; return light_decode_table[light]; } // 0.0 <= light <= 1.0 // 0.0 <= return value <= 1.0 float decode_light_f(float light_f); void set_light_table(float gamma); #endif // ifndef SERVER // 0 <= daylight_factor <= 1000 // 0 <= lightday, lightnight <= LIGHT_SUN // 0 <= return value <= LIGHT_SUN inline u8 blend_light(u32 daylight_factor, u8 lightday, u8 lightnight) { u32 c = 1000; u32 l = ((daylight_factor * lightday + (c - daylight_factor) * lightnight)) / c; if (l > LIGHT_SUN) l = LIGHT_SUN; return l; }