2025-07-22 08:55 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0005390Spring engineGeneralpublic2016-11-15 14:41
ReporterGoogle_Frog 
Assigned Tohokomoko 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version103.0 +git 
Target VersionFixed in Version 
Summary0005390: Placement UI of floating structures is incorrect on water
DescriptionThe UI for the placement of structures is incorrect when the structure floats. The blueprint and issued command are placed on the surface of the ocean floor which the mouse is hovered over. In effect, the ray trace is ignoring the water. The ray trace should be improved to ignore water only when the structure to be placed does not float.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0016869

Google_Frog (reporter)

https://github.com/spring/spring/blob/develop/rts/Game/UI/GuiHandler.cpp#L2432
The false at the end of that line needs to be changed to whether the unitDefID stored in startInfo can float.

https://github.com/spring/spring/blob/develop/rts/Game/UI/GuiHandler.cpp#L2162
This is where the build command is given. The LineGroundCol does not take water into account so probably needs to be changed to a GuiTraceRay.

~0016870

hokomoko (developer)

Fix 36e115b168f563f4b6498f5ae0059fc4d3c9f593 committed to develop branch: Fix 0005390, repo: spring changeset id: 7588
+Notes

-Issue History
Date Modified Username Field Change
2016-11-13 15:08 Google_Frog New Issue
2016-11-15 08:17 Google_Frog Note Added: 0016869
2016-11-15 14:41 hokomoko Changeset attached => spring develop 36e115b1
2016-11-15 14:41 hokomoko Note Added: 0016870
2016-11-15 14:41 hokomoko Assigned To => hokomoko
2016-11-15 14:41 hokomoko Status new => resolved
2016-11-15 14:41 hokomoko Resolution open => fixed
+Issue History