paulofmandown / rotLove

Roguelike Toolkit in Love. A Love2D/lua port of rot.js
http://paulofmandown.github.io/rotLove/
Other
258 stars 25 forks source link

ROT.FOV.Precise:compute #1

Closed srmeier closed 10 years ago

srmeier commented 10 years ago

I believe line 4121 in the ROT.FOV.Precise:compute() routine should be

A1={i>0 and 2*i-1 or 2*neighborCount-1, 2*neighborCount}

not

A1={i>1 and 2*i-1 or 2*neighborCount-1, 2*neighborCount}

from the rotjs source:

A1 = [i ? 2*i-1 : 2*neighborCount-1, 2*neighborCount];

This seems to be the root cause of some strange behavior I was experiencing.