SphereServer BugTracker - SphereServer
View Issue Details
0002356SphereServerexecutable - windows buildpublic29-05-14 07:3631-05-14 15:51
Coruja 
Ben 
normalmajoralways
resolvedfixed 
 
0.56c Nightly 
Automated (specify build number)
None
None
1944
0002356: Diagonal LOS problems
If I try to hit someone between diagonal walls, I will have LOS and can attack or cast spells on the target

Many years ago, the diagonal LOS check was made by checking both directions, eg: to have LOS on NW I must have LOS on both N + W. If N or W LOS check fails, I wont have LOS to NW.
I dont know if still working this way, but something is wrong.

On the example img I dont have LOS to both S and W but I can attack/cast spells on the pig (SW)
Tested on may 25 and may 29 builds, using AdvancedLOS=0, 01, 02 and 01|02

Walls dispID on attached img: 0254a, 0254c, 0254e
No tags attached.
png BugDiagonalLOS.png (59,850) 29-05-14 07:36
http://tracker.sphere.torfo.org/bugs/file_download.php?file_id=102&type=bug
png
Issue History
29-05-14 07:36CorujaNew Issue
29-05-14 07:36CorujaFile Added: BugDiagonalLOS.png
31-05-14 15:51BenNote Added: 0002259
31-05-14 15:51BenStatusnew => resolved
31-05-14 15:51BenFixed in Version => 0.56c Nightly
31-05-14 15:51BenResolutionopen => fixed
31-05-14 15:51BenAssigned To => Ben

Notes
(0002259)
Ben   
31-05-14 15:51   
Ok, Found the problem...
It was not testing LOS properly when distance was <= 1 as being beside something "should" mean you can see it.
Now it tests the diagonals properly at distance of 1.

This is only valid if AdvancedLOS is disabled.