Skip to content
Snippets Groups Projects
  1. Aug 12, 2015
    • est31's avatar
      Fix Lua PcgRandom · 738fbc66
      est31 authored
      Before, this lua code led to a crash:
      
      local pcg = PcgRandom(42)
      local value = pcg:next()
      
      This was because if you called s32 PcgRandom::range(min, max) with the
      minimum and maximum possible values for s32 integers (which the lua
      binding code did), u32 PcgRandom::range(bound) got called with 0 as the
      bound. The bound however is one above the maximum value, so 0 is a "special"
      value to pass to this function. This commit fixes the lua crash by
      assigning the RNG's full range to the bound 0, which is also fits to the
      "maximum is bound - 1" principle, as (u32)-1 is the maximum value in the
      u32 range.
      738fbc66
  2. Aug 10, 2015
  3. Aug 09, 2015
  4. Aug 07, 2015
  5. Aug 06, 2015
  6. Aug 05, 2015
  7. Aug 03, 2015
  8. Aug 02, 2015
  9. Aug 01, 2015
  10. Jul 31, 2015
    • Loïc Blot's avatar
      Small SendableMediaAnnouncement cleanup · 05fe9ab2
      Loïc Blot authored
      -> Remove the SendableMediaAnnouncement struct
      -> Forge the packet directly in the m_media loop, spare one loop and the construction of a vector
      -> Use preincrement to spare iterator copies
      05fe9ab2
  11. Jul 29, 2015
  12. Jul 27, 2015
  13. Jul 25, 2015
Loading