Skip to content
Snippets Groups Projects
  1. Dec 06, 2019
  2. Nov 30, 2019
  3. Oct 15, 2019
  4. Sep 25, 2019
    • Monster Iestyn's avatar
      Write a new hack for getting sector->linecount from sector->lines in Lua, to... · 75ee3193
      Monster Iestyn authored
      Write a new hack for getting sector->linecount from sector->lines in Lua, to put my mind at rest about it at last.
      
      1) In sector_get, actually push the memory address of the lines array within sector_t, rather than push the value of "lines" itself (essentially, we we want a pointer to a double pointer, or rather a TRIPLE pointer haha)
      2) In the sectorlines_* functions, use offsetof to shift the memory address so we can obtain the value of linecount within the sector_t struct, and dereference the result to obtain the value of linecount itself
      3) ??? profit
      
      Untested and uncompiled atm, but I have some confidence this might work
      75ee3193
  5. Aug 01, 2019
  6. Jul 12, 2019
  7. Apr 21, 2019
  8. Apr 20, 2019
  9. Nov 30, 2018
  10. Nov 27, 2018
  11. Nov 25, 2018
  12. Nov 23, 2018
  13. Nov 11, 2018
  14. Oct 21, 2018
  15. Oct 08, 2018
  16. Aug 05, 2018
  17. Mar 09, 2018
  18. Feb 09, 2018
  19. Jan 20, 2018
  20. Dec 15, 2017
  21. Jul 02, 2017
  22. Apr 25, 2017
  23. Nov 24, 2016
  24. Oct 27, 2016
    • Monster Iestyn's avatar
      Created lua_blockmaplib.c, for Lua's blockmap library · dc1e7165
      Monster Iestyn authored
      my P_SearchBlockmap_* functions are now a single searchBlockmap function, you can choose between "objects" and "lines" with the first arg to decide what to iterate through. I also rearranged the argument order a bit for easy stack cleanup etc
      
      I'll remove the old stuff later, don't worry, it's disabled for now
      dc1e7165
  25. Oct 25, 2016
  26. Jul 10, 2016
  27. Jul 08, 2016
  28. May 25, 2016
  29. May 18, 2016
  30. Mar 03, 2016
  31. Sep 03, 2015
  32. Jun 10, 2015
  33. May 21, 2015
    • Yukita Mayako's avatar
      Change LUA_NUMBER to fixed_t, change angle_t handling in Lua. · ef0e61fc
      Yukita Mayako authored
      Angles now go from 0 to 0xFFFF (360 degrees == FRACUNIT) instead
      of using a full UINT32. Lua only has one number type, so signedness
      gets in the way of using angle_t directly. This handling of angles
      matches up with how ZDoom ACS scripting and the like does it.
      
      I also changed all the integer casts and pushes of fixed_t to
      their own macro in preperation for possible future seperation.
      ef0e61fc
  34. Aug 05, 2014
  35. Aug 04, 2014
Loading