2025-07-17 23:58 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001684Spring engineGeneralpublic2011-01-15 05:24
Reporterspliff 
Assigned TojK 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version0.80.4.0 
Target VersionFixed in Version 
Summary0001684: Order waypoint markers not appearing in correct position
DescriptionI draw a box (made up of Spring.MarkerAddLine's). I then give an order to patrol the exact same set of coords and notice that the positions of the order waypoints are not visually aligned with the real order coords.

It looks like the waypoint markers are drawn using a fixed Y (elevation) whereas the drawn lines and units are constrained to the ground height.

The result of this is that when the camera is zoomed in the waypoint markers typically appear in different positions to where the units are really going. The offset varies from practically nothing to a gap large enough to fit 5 or 6 tanks side-by-side, depending on the zoom and camera angle.

The fix for this is to align the drawn waypoints with the terrain height (sea floor for subs and amphib).
Additional InformationI've attached a PNG to illustrate this. The true patrol points are the corners of the thick blue box (marked as red dots). This is easily verified by watching where the unit turns.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0004230

spliff (reporter)

I understated how inaccurate the points can get, especially when the camera is near the ground. Attached second PNG to demonstrate. The waypoint lines actually appear to indicate the unit should be traveling backwards when in fact the waypoint is ahead of the unit.

~0006261

jK (developer)

I assume it was a precision issue in some math-ops (e.g. sqrt)
+Notes

-Issue History
Date Modified Username Field Change
2009-10-17 17:26 spliff New Issue
2009-10-17 17:26 spliff File Added: incorrect_order_markers.png
2009-10-18 04:44 spliff Note Added: 0004230
2009-10-18 04:45 spliff File Added: even_worse.png
2011-01-15 05:24 jK Note Added: 0006261
2011-01-15 05:24 jK Status new => resolved
2011-01-15 05:24 jK Resolution open => fixed
2011-01-15 05:24 jK Assigned To => jK
+Issue History