Author Topic: Bug in raycaster  (Read 601 times)

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 549
    • View Profile
Bug in raycaster
« on: June 29, 2016 »
I just found a bug in the raycaster library. Think I've had it happen before without investigating it. Anyhow, it will make your program crash when it occurs. It's doesn't occur if your map always has atleast 2 live "objects".

If you've messed about with the library yourself, you can just add the following line

Code: [Select]
if rc_ObjCount <= 1 then return
to the very beginning of procedure RC_SortObjects. Else you can copy the lib file attached to this post to your N6/bin/libs folder.


Edit  Forgot to add the files ...



« Last Edit: June 30, 2016 by Marcus »
.\\\opz

darkhog

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: Bug in raycaster
« Reply #1 on: June 30, 2016 »
It also crashes when you make room without any walls and then go out of bounds.

Marcus

  • Administrator
  • Hero Member
  • *****
  • Posts: 549
    • View Profile
Re: Bug in raycaster
« Reply #2 on: July 01, 2016 »
It also crashes when you make room without any walls and then go out of bounds.

Hehe, I never tried that :) But it displays alright, no crashing because of lack of walls?
.\\\opz

darkhog

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: Bug in raycaster
« Reply #3 on: July 01, 2016 »
It displays allright in RC_Edit, just as soon as you reach bounds of the room, it crashes.