Skip to content
Snippets Groups Projects
  1. Feb 13, 2016
  2. Feb 11, 2016
  3. Feb 10, 2016
    • Auke Kok's avatar
      Fix backface culling when connecting to new servers. · 47464c93
      Auke Kok authored
      Introduce a new contentfeatures version (8). When clients
      connect using v27 protocol version, they can assume that
      the tiledef.backface_culling is trustable, but if clients
      connect to servers providing contentfeatures version 7,
      then the v27 clients know that backface culling settings
      provided by the server in tiledefs are bogus for mesh,
      plantlike, firelike or liquid drawtype nodes.
      
      thanks to hmmmm, est31, nerzhul.
      
      Tested on new client - new server, new client - old server
      old client - new server.
      47464c93
  4. Feb 09, 2016
  5. Feb 08, 2016
  6. Feb 07, 2016
  7. Feb 04, 2016
  8. Feb 02, 2016
    • Duane Robertson's avatar
      Mgvalleys: fix riverbeds below sea level · 99c905c5
      Duane Robertson authored
      Stop riverbeds from forming plateaus under sea. Minor corrections to
      random lava/water placement.
      99c905c5
    • paramat's avatar
      Mgv5/v7/flat/fractal: Move tunnel noise calculation into generateCaves · 0a8af881
      paramat authored
      Tunnel 3D noises are only calculated when solid terrain is present
      in mapchunk, avoiding large amounts of unnecessary calculations
      Change 'int' to 's16' in calculateNoise
      Change 'i' to 'vi' for voxelmanip indexes for consistency
      Keep 'u32 index3d' local to a smaller part of tunnel code
      Mgv7: Don't call CaveV7 if no solid terrain in mapchunk
      Give 'open' bool a more descriptive name
      0a8af881
  9. Jan 31, 2016
    • Duane Robertson's avatar
      Mgvalleys: use standard caves · 80c7612e
      Duane Robertson authored
      Replace simple caves with V5 caves, adding unpredictable water and lava
      settings and massive caves based on subterrain. Remove fast terrain mode
      and accompanying settings. Remove superfluous temperature/humidity
      settings. Remove lava/water height setting. Fix errors in humidity
      handling and remove humidity_break_point setting. Move cave noises to
      generateCaves. Fix minor formatting/naming issues and use
      MYMAX/MYMIN/myround.
      80c7612e
  10. Jan 29, 2016
    • Pavel Puchkin's avatar
      Fix OSX building issue caused by ad884f23 · 83583aa2
      Pavel Puchkin authored
      83583aa2
    • est31's avatar
      Don't pass non-const references to collision methods · 4e93ba06
      est31 authored
      Non const references cause a lot of confusion with behaviour of code,
      and are disallowed by minetest style guide.
      4e93ba06
    • Auke Kok's avatar
      New timer design. · ad884f23
      Auke Kok authored
      I could honestly not make much sense of the timer implementation
      that was here. Instead I've implemented the type of timer algorithm
      that I've used before, and tested it instead.
      
      The concept is extremely simple: all timers are put in an ordered
      list. We check every server tick if any of the timers have
      elapsed, and execute the function associated with this timer.
      
      We know that many timers by themselves cause new timers to be
      added to this list, so we iterate *backwards* over the timer
      list. This means that new timers being added while timers are
      being executed, can never be executed in the same function pass,
      as they are always appended to the table *after* the end of
      the table, which we will never reach in the current pass over
      all the table elements.
      
      We switch time keeping to minetest.get_us_time(). dtime is
      likely unreliable and we have our own high-res timer that we
      can fix if it is indeed broken. This removes the need to do
      any sort of time keeping.
      ad884f23
    • Auke Kok's avatar
      Clocksource: use a better clock if available. · 4ac1e9bc
      Auke Kok authored
      clock_gettime() is a far better clock than gettimeofday().
      
      Even better than clock_gettime() is that you can select either
      CLOCK_MONOTONIC, or even CLOCK_MONOTONIC_RAW. These clocks offer
      high precision time. And the _RAW variant will never roll back
      due to NTP drift or daylight savings, or otherwise.
      
      I've adjusted this code to select the right clock method auto-
      matically based on what's available in the OS. This means that
      if you're running a very old linux version, MacOS or other,
      you will automatically get the best clocksource available.
      
      I've tested all Linux clocksources by selectively compiling and
      running a 10k+ timer test suite. In all cases I confirmed that
      the 3 POSIX Linux clocksources worked properly, and were
      selected properly.
      
      I've modified the OS X compile path to use the high-res clock
      source for all time functions, but I can't confirm it works or
      that it compiles.
      
      As for WIN32, I confirmed that the used clocksource is indeed
      a Monotonic clocksource, so good news: that code section appears
      to be exactly what it should be.
      4ac1e9bc
  11. Jan 28, 2016
    • est31's avatar
      Don't print whole json data buffer to errorstream on error · 860d70bd
      est31 authored
      `errorstream` must not be overly verbose as clientside it is directly printed
      onto the ingame chat window. These days, the serverlist can contain > 200k bytes,
      so better print it to warningstream if the data buffer is too long.
      860d70bd
  12. Jan 25, 2016
Loading