2020-08-11 11:55 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001375Spring engineGeneralpublic2009-05-08 22:24
Assigned ToKloot 
Product Version0.78.2.1 
Target VersionFixed in Version0.78.2.1+git 
Summary0001375: Spring.IsPosInRadar Bug
DescriptionSpring.IsPosInRadar seems to ignore terrain. It always returns true when inside radar range. Test widget in additional information and uploaded a screenshot. The effect is the same whether Spring.GetPositionLosState or Spring.IsPosInRadaris used.
Additional Informationfunction widget:GameFrame(n)
  if (n%15<1) then
    local mx,my,mz = Spring.GetMouseState()
    local cType,pos = Spring.TraceScreenRay(mx,my)
    if (cType == "ground") then
      local _,_,radar = Spring.GetPositionLosState(pos[1],pos[2],pos[3],Spring.GetLocalAllyTeamID())
      if radar then
        Spring.MarkerAddPoint( pos[1],pos[2],pos[3], "")
        Spring.MarkerAddPoint( pos[1],pos[2],pos[3], "NOT RADAR")
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files




Kloot (developer)

Should be fixed, thanks for the report.

-Issue History
Date Modified Username Field Change
2009-04-12 04:47 Google_Frog New Issue
2009-04-12 04:47 Google_Frog File Added: screen029.jpg
2009-05-08 22:23 Kloot Note Added: 0003424
2009-05-08 22:24 Kloot Status new => resolved
2009-05-08 22:24 Kloot Fixed in Version =>
2009-05-08 22:24 Kloot Resolution open => fixed
2009-05-08 22:24 Kloot Assigned To => Kloot
+Issue History