View Issue Details

IDProjectCategoryView StatusLast Update
0003226Spring engineGeneralpublic2012-07-30 12:42
Reportergajop Assigned ToKloot  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version89.0 
Fixed in Version89.0.1+git 
Summary0003226: Spring.SetFeaturePosition doesn't work
DescriptionIt simply does nothing for me, and I have a valid featureID.
I'm using the same code for moving units, via Spring.SetUnitPosition and that works ok, and as a workaround I'm currently destroying features and recreating new ones at different positions using Spring.CreateFeature.
Steps To ReproduceCreate a feature, and then set its positions using Spring.SetFeaturePosition to be different than those initially set.
TagsNo tags attached.
Attached Files
Feature.cpp.diff (Attachment missing)
Checked infolog.txt for Errors

Activities

gajop

2012-07-30 01:52

developer   ~0009093

Last edited: 2012-07-30 01:53

Bug's probably here:
https://github.com/spring/spring/blob/develop/rts/Sim/Features/Feature.cpp#L405
In comparison to what it should be like:
https://github.com/spring/spring/blob/develop/rts/Sim/Units/Unit.cpp#L553
However it seems those two ForcedMoves aren't supposed to behave the same way, but this is the patch I managed to create (Feature.cpp)

PS: the diff supplied was for a 89.0 clean, not the git one (can't be bothered to configure it on arch right now)

Issue History

Date Modified Username Field Change
2012-07-30 00:38 gajop New Issue
2012-07-30 01:52 gajop File Added: Feature.cpp.diff
2012-07-30 01:52 gajop Note Added: 0009093
2012-07-30 01:53 gajop Note Edited: 0009093
2012-07-30 12:42 Kloot Status new => resolved
2012-07-30 12:42 Kloot Fixed in Version => 89.0.1+git
2012-07-30 12:42 Kloot Resolution open => fixed
2012-07-30 12:42 Kloot Assigned To => Kloot